Sha256: ffdf0b7d2de23d5f7cd62adb9cc35509d0202018d3814fbac9e027b9b141844d
Contents?: true
Size: 730 Bytes
Versions: 11
Compression:
Stored size: 730 Bytes
Contents
# frozen_string_literal: true require "openapi3_parser/node_factory/object" require "openapi3_parser/validation/input_validator" require "openapi3_parser/validators/email" require "openapi3_parser/validators/url" module Openapi3Parser module NodeFactory class Contact < NodeFactory::Object allow_extensions field "name", input_type: String field "url", input_type: String, validate: Validation::InputValidator.new(Validators::Url) field "email", input_type: String, validate: Validation::InputValidator.new(Validators::Email) private def build_object(data, context) Node::Contact.new(data, context) end end end end
Version data entries
11 entries across 11 versions & 2 rubygems