Class: JSONSchemer::OpenAPI31::Vocab::Base::AnyOf
- Inherits:
-
Draft202012::Vocab::Applicator::AnyOf
- Object
- Keyword
- Draft202012::Vocab::Applicator::AnyOf
- JSONSchemer::OpenAPI31::Vocab::Base::AnyOf
- Defined in:
- lib/json_schemer/openapi31/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::Applicator::AnyOf
Methods inherited from Keyword
#absolute_keyword_location, #error_key, #fetch, #initialize, #parsed_schema, #schema_pointer
Methods included from JSONSchemer::Output
Constructor Details
This class inherits a constructor from JSONSchemer::Keyword
Instance Method Details
#validate ⇒ Object
25 26 27 |
# File 'lib/json_schemer/openapi31/vocab/base.rb', line 25 def validate(*) schema.parsed.key?('discriminator') ? nil : super end |