class Openapi3Parser::NodeFactory::Components
Private Instance Methods
build_object(data, context)
click to toggle source
# File lib/openapi3_parser/node_factory/components.rb, line 21 def build_object(data, context) Node::Components.new(data, context) end
callbacks_factory(context)
click to toggle source
# File lib/openapi3_parser/node_factory/components.rb, line 57 def callbacks_factory(context) referenceable_map_factory(context, NodeFactory::Callback) end
default()
click to toggle source
# File lib/openapi3_parser/node_factory/components.rb, line 69 def default {} end
examples_factory(context)
click to toggle source
# File lib/openapi3_parser/node_factory/components.rb, line 37 def examples_factory(context) referenceable_map_factory(context, NodeFactory::Example) end
headers_factory(context)
click to toggle source
# File lib/openapi3_parser/node_factory/components.rb, line 45 def headers_factory(context) referenceable_map_factory(context, NodeFactory::Header) end
links_factory(context)
click to toggle source
# File lib/openapi3_parser/node_factory/components.rb, line 53 def links_factory(context) referenceable_map_factory(context, NodeFactory::Link) end
parameters_factory(context)
click to toggle source
# File lib/openapi3_parser/node_factory/components.rb, line 33 def parameters_factory(context) referenceable_map_factory(context, NodeFactory::Parameter) end
referenceable_map_factory(context, factory)
click to toggle source
# File lib/openapi3_parser/node_factory/components.rb, line 61 def referenceable_map_factory(context, factory) NodeFactory::Map.new( context, value_factory: NodeFactory::OptionalReference.new(factory), validate: Validation::InputValidator.new(Validators::ComponentKeys) ) end
request_bodies_factory(context)
click to toggle source
# File lib/openapi3_parser/node_factory/components.rb, line 41 def request_bodies_factory(context) referenceable_map_factory(context, NodeFactory::RequestBody) end
responses_factory(context)
click to toggle source
# File lib/openapi3_parser/node_factory/components.rb, line 29 def responses_factory(context) referenceable_map_factory(context, NodeFactory::Response) end
schemas_factory(context)
click to toggle source
# File lib/openapi3_parser/node_factory/components.rb, line 25 def schemas_factory(context) referenceable_map_factory(context, NodeFactory::Schema) end
security_schemes_factory(context)
click to toggle source
# File lib/openapi3_parser/node_factory/components.rb, line 49 def security_schemes_factory(context) referenceable_map_factory(context, NodeFactory::SecurityScheme) end