class Openapi3Parser::NodeFactory::MediaType
Private Instance Methods
build_object(data, context)
click to toggle source
# File lib/openapi3_parser/node_factory/media_type.rb, line 19 def build_object(data, context) Node::MediaType.new(data, context) end
encoding_factory(context)
click to toggle source
# File lib/openapi3_parser/node_factory/media_type.rb, line 35 def encoding_factory(context) NodeFactory::Map.new( context, validate: EncodingValidator.new(self), value_factory: NodeFactory::Encoding ) end
examples_factory(context)
click to toggle source
# File lib/openapi3_parser/node_factory/media_type.rb, line 28 def examples_factory(context) factory = NodeFactory::OptionalReference.new(NodeFactory::Example) NodeFactory::Map.new(context, default: nil, value_factory: factory) end
schema_factory(context)
click to toggle source
# File lib/openapi3_parser/node_factory/media_type.rb, line 23 def schema_factory(context) factory = NodeFactory::Schema NodeFactory::OptionalReference.new(factory).call(context) end