Sha256: 6eff35c4219d5c26a30e369c23caa1ac4a0d53fe4b1cfcf59c2409447a23a7c5

Contents?: true

Size: 791 Bytes

Versions: 2

Compression:

Stored size: 791 Bytes

Contents

require 'swagger/swagger_object'

module Swagger
  module V2
    # Class representing a Swagger "Security Scheme Object".
    # @see https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#securitySchemeObject
    #   Security Scheme Object
    class SecurityScheme < SwaggerObject
      # FIXME: Swagger documentation about what's required doesn't seem accurate - OSAuth2 centric?

      # According to docs, all except description are required. Schema and samples don't match.

      # @!group Fixed Fields
      field :type, String
      field :description, String
      field :name, String
      field :in, String
      field :flow, String
      field :authorizationUrl, String
      field :tokenUrl, String
      field :scopes, Hash
      # @!endgroup
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
swagger-parser-0.2.6 lib/swagger/v2/security_scheme.rb
swagger-parser-0.2.5 lib/swagger/v2/security_scheme.rb