Sha256: 0b88257297243c4f0abbe0583038edd7f85c805c190f09945b9a0e1f6198a018
Contents?: true
Size: 731 Bytes
Versions: 2
Compression:
Stored size: 731 Bytes
Contents
# frozen_string_literal: true require "openapi3_parser/node/example" require "openapi3_parser/node_factory/object" require "openapi3_parser/validators/url" require "openapi3_parser/validation/input_validator" module Openapi3Parser module NodeFactory class Example < NodeFactory::Object allow_extensions field "summary", input_type: String field "description", input_type: String field "value" field "externalValue", input_type: String, validate: Validation::InputValidator.new(Validators::Url) mutually_exclusive "value", "externalValue" private def build_object(data, context) Node::Example.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/example.rb |
openapi3_parser-0.5.0 | lib/openapi3_parser/node_factory/example.rb |