Class: OpenAPIParser::Schemas::Header
- Defined in:
- lib/openapi_parser/schemas/header.rb,
lib/openapi_parser/schemas/classes.rb
Instance Attribute Summary collapse
- #schema ⇒ Schema, ... readonly
Attributes inherited from Base
#object_reference, #parent, #raw_schema, #root
Instance Method Summary collapse
-
#validate(value) ⇒ Object
validate by schema.
Methods inherited from Base
#after_init, #initialize, #inspect
Methods included from Expandable
Methods included from Findable
#find_object, #purge_object_cache
Methods included from Parser
#_openapi_all_child_objects, #_update_child_object, included, #load_data
Constructor Details
This class inherits a constructor from OpenAPIParser::Schemas::Base
Instance Attribute Details
Instance Method Details
#validate(value) ⇒ Object
validate by schema
14 15 16 |
# File 'lib/openapi_parser/schemas/header.rb', line 14 def validate(value) OpenAPIParser::SchemaValidator.validate(value, schema, OpenAPIParser::SchemaValidator::Options.new) end |