Sha256: 291049af15b2b05eabb112d68c88ef997c6328de6d53a1aa422488b49750dfb9
Contents?: true
Size: 692 Bytes
Versions: 11
Compression:
Stored size: 692 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 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
11 entries across 11 versions & 2 rubygems