Class: JSONSchemer::OpenAPI30::Vocab::Base::Type
- Inherits:
-
Draft4::Vocab::Validation::Type
- Object
- Keyword
- Draft202012::Vocab::Validation::Type
- Draft4::Vocab::Validation::Type
- JSONSchemer::OpenAPI30::Vocab::Base::Type
- Defined in:
- lib/json_schemer/openapi30/vocab/base.rb
Constant Summary
Constants included from JSONSchemer::Output
JSONSchemer::Output::FRAGMENT_ENCODE_REGEX
Instance Attribute Summary
Attributes inherited from Keyword
#parent, #parsed, #root, #value
Attributes included from JSONSchemer::Output
Instance Method Summary collapse
Methods inherited from Draft202012::Vocab::Validation::Type
Methods inherited from Keyword
#absolute_keyword_location, #error_key, #fetch, #initialize, #parsed_schema, #schema_pointer, #validate
Methods included from JSONSchemer::Output
Constructor Details
This class inherits a constructor from JSONSchemer::Keyword
Instance Method Details
#parse ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/json_schemer/openapi30/vocab/base.rb', line 7 def parse if schema.value['nullable'] == true (Array(value) + ['null']).uniq else super end end |