Class: Openapi3Parser::NodeFactories::Array

Inherits:
Object
  • Object
show all
Includes:
Openapi3Parser::NodeFactory
Defined in:
lib/openapi3_parser/node_factories/array.rb

Constant Summary

Constants included from Openapi3Parser::NodeFactory

Openapi3Parser::NodeFactory::EXTENSION_REGEX

Instance Attribute Summary

Attributes included from Openapi3Parser::NodeFactory

#context

Instance Method Summary collapse

Methods included from Openapi3Parser::NodeFactory

#allowed_default?, #errors, included, #nil_input?, #node, #valid?

Constructor Details

#initialize(context, default: [], value_input_type: nil, value_factory: nil, validate: nil) ⇒ Array

Returns a new instance of Array.



16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/openapi3_parser/node_factories/array.rb', line 16

def initialize(
  context,
  default: [],
  value_input_type: nil,
  value_factory: nil,
  validate: nil
)
  @default = default
  @given_value_input_type = value_input_type
  @given_value_factory = value_factory
  @given_validate = validate
  super(context)
end