Sha256: d1668256aa39cebeedade2c57dd5c1037c1e07a4375f7550fee12d8579959850

Contents?: true

Size: 772 Bytes

Versions: 11

Compression:

Stored size: 772 Bytes

Contents

# frozen_string_literal: true

require "openapi3_parser/node_factory/object"

module Openapi3Parser
  module NodeFactory
    class SecurityScheme < NodeFactory::Object
      allow_extensions

      field "type", input_type: String, required: true
      field "description", input_type: String
      field "name", input_type: String
      field "in", input_type: String
      field "scheme", input_type: String
      field "bearerFormat", input_type: String
      field "flows", factory: :flows_factory
      field "openIdConnectUrl", input_type: String

      private

      def build_object(data, context)
        Node::SecurityScheme.new(data, context)
      end

      def flows_factory(context)
        NodeFactory::OauthFlows.new(context)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
openapi3_parser-0.9.2 lib/openapi3_parser/node_factory/security_scheme.rb
mountapi-0.11.1 vendor/bundle/ruby/2.7.0/gems/openapi3_parser-0.9.1/lib/openapi3_parser/node_factory/security_scheme.rb
openapi3_parser-0.9.1 lib/openapi3_parser/node_factory/security_scheme.rb
openapi3_parser-0.9.0 lib/openapi3_parser/node_factory/security_scheme.rb
openapi3_parser-0.8.2 lib/openapi3_parser/node_factory/security_scheme.rb
openapi3_parser-0.8.1 lib/openapi3_parser/node_factory/security_scheme.rb
openapi3_parser-0.8.0 lib/openapi3_parser/node_factory/security_scheme.rb
openapi3_parser-0.7.0 lib/openapi3_parser/node_factory/security_scheme.rb
openapi3_parser-0.6.1 lib/openapi3_parser/node_factory/security_scheme.rb
openapi3_parser-0.6.0 lib/openapi3_parser/node_factory/security_scheme.rb
openapi3_parser-0.5.2 lib/openapi3_parser/node_factory/security_scheme.rb