Sha256: 86f0a5039ac23f393b3626434273d8091c9a68414c473dce4b24ab1850a483e0

Contents?: true

Size: 712 Bytes

Versions: 12

Compression:

Stored size: 712 Bytes

Contents

# frozen_string_literal: true

require "openapi3_parser/node_factory/object"

module Openapi3Parser
  module NodeFactory
    class OauthFlows < NodeFactory::Object
      allow_extensions
      field "implicit", factory: :oauth_flow_factory
      field "password", factory: :oauth_flow_factory
      field "clientCredentials", factory: :oauth_flow_factory
      field "authorizationCode", factory: :oauth_flow_factory

      private

      def oauth_flow_factory(context)
        NodeFactory::OptionalReference.new(NodeFactory::OauthFlow)
                                      .call(context)
      end

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

Version data entries

12 entries across 12 versions & 2 rubygems

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