Sha256: cfa45c46b1e021528def3362361382727d903120d18f80482b98f6d7fa5c4994
Contents?: true
Size: 774 Bytes
Versions: 2
Compression:
Stored size: 774 Bytes
Contents
# frozen_string_literal: true require "openapi3_parser/node/xml" require "openapi3_parser/node_factory/object" require "openapi3_parser/validators/absolute_uri" require "openapi3_parser/validation/input_validator" module Openapi3Parser module NodeFactory class Xml < NodeFactory::Object allow_extensions field "name", input_type: String field "namespace", input_type: String, validate: Validation::InputValidator.new(Validators::AbsoluteUri) field "prefix", input_type: String field "attribute", input_type: :boolean, default: false field "wrapped", input_type: :boolean, default: false private def build_object(data, context) Node::Xml.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/xml.rb |
openapi3_parser-0.5.0 | lib/openapi3_parser/node_factory/xml.rb |