Sha256: e57cc818cbeb9b09682a8ecb57874bf159d08c76381d21267d49ec3d33a64279

Contents?: true

Size: 531 Bytes

Versions: 2

Compression:

Stored size: 531 Bytes

Contents

# frozen_string_literal: true

require "openapi3_parser/node/oauth_flow"
require "openapi3_parser/node_factory/object"

module Openapi3Parser
  module NodeFactory
    class OauthFlow < NodeFactory::Object
      allow_extensions
      field "authorizationUrl", input_type: String
      field "tokenUrl", input_type: String
      field "refreshUrl", input_type: String
      field "scopes", input_type: Hash

      private

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
openapi3_parser-0.5.1 lib/openapi3_parser/node_factory/oauth_flow.rb
openapi3_parser-0.5.0 lib/openapi3_parser/node_factory/oauth_flow.rb