Sha256: da12560e15c89055d786f789918fd07229e9851d2070aaeaa999985b90b6dd29
Contents?: true
Size: 887 Bytes
Versions: 11
Compression:
Stored size: 887 Bytes
Contents
# frozen_string_literal: true require "openapi3_parser/node_factory/contact" require "openapi3_parser/node_factory/license" require "openapi3_parser/node_factory/object" require "openapi3_parser/validation/input_validator" require "openapi3_parser/validators/url" module Openapi3Parser module NodeFactory class Info < NodeFactory::Object allow_extensions field "title", input_type: String, required: true field "description", input_type: String field "termsOfService", input_type: String, validate: Validation::InputValidator.new(Validators::Url) field "contact", factory: NodeFactory::Contact field "license", factory: NodeFactory::License field "version", input_type: String, required: true private def build_object(data, context) Node::Info.new(data, context) end end end end
Version data entries
11 entries across 11 versions & 2 rubygems