Sha256: fd4fc0c7a15924078aa1a61823e0d627211863ac107be59abdaf10280e44384c
Contents?: true
Size: 679 Bytes
Versions: 2
Compression:
Stored size: 679 Bytes
Contents
# frozen_string_literal: true require "openapi3_parser/node/external_documentation" 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
openapi3_parser-0.5.1 | lib/openapi3_parser/node_factory/external_documentation.rb |
openapi3_parser-0.5.0 | lib/openapi3_parser/node_factory/external_documentation.rb |