Method: Openapi3Parser::NodeFactory::Paths#initialize

Defined in:
lib/openapi3_parser/node_factory/paths.rb

#initialize(context) ⇒ Paths

Returns a new instance of Paths.



23
24
25
26
27
28
29
30
# File 'lib/openapi3_parser/node_factory/paths.rb', line 23

def initialize(context)
  factory = NodeFactory::OptionalReference.new(NodeFactory::PathItem)

  super(context,
        allow_extensions: true,
        value_factory: factory,
        validate: :validate)
end