Sha256: 4abe26cb963e8ca8cf4c5ddb0831df45ed900819d28d0a54f919288ae9e196dd

Contents?: true

Size: 534 Bytes

Versions: 11

Compression:

Stored size: 534 Bytes

Contents

# frozen_string_literal: true

require "openapi3_parser/node_factory/object"
require "openapi3_parser/node_factory/external_documentation"

module Openapi3Parser
  module NodeFactory
    class Tag < NodeFactory::Object
      allow_extensions
      field "name", input_type: String, required: true
      field "description", input_type: String
      field "externalDocs", factory: NodeFactory::ExternalDocumentation

      private

      def build_object(data, context)
        Node::Tag.new(data, 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/tag.rb
mountapi-0.11.1 vendor/bundle/ruby/2.7.0/gems/openapi3_parser-0.9.1/lib/openapi3_parser/node_factory/tag.rb
openapi3_parser-0.9.1 lib/openapi3_parser/node_factory/tag.rb
openapi3_parser-0.9.0 lib/openapi3_parser/node_factory/tag.rb
openapi3_parser-0.8.2 lib/openapi3_parser/node_factory/tag.rb
openapi3_parser-0.8.1 lib/openapi3_parser/node_factory/tag.rb
openapi3_parser-0.8.0 lib/openapi3_parser/node_factory/tag.rb
openapi3_parser-0.7.0 lib/openapi3_parser/node_factory/tag.rb
openapi3_parser-0.6.1 lib/openapi3_parser/node_factory/tag.rb
openapi3_parser-0.6.0 lib/openapi3_parser/node_factory/tag.rb
openapi3_parser-0.5.2 lib/openapi3_parser/node_factory/tag.rb