Sha256: d320ad0f2406e0b76b0854e31f65426befb9a8d3ccce159a221cc76d4acbf18e

Contents?: true

Size: 625 Bytes

Versions: 11

Compression:

Stored size: 625 Bytes

Contents

# frozen_string_literal: true

require "openapi3_parser/node_factory/object"
require "openapi3_parser/validation/input_validator"
require "openapi3_parser/validators/url"

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

      field "description", input_type: String
      field "url",
            required: true,
            input_type: String,
            validate: Validation::InputValidator.new(Validators::Url)

      private

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