class JSONSchema::CompositeValidator
- JSONSchema::CompositeValidator
- Reference
- Object
Overview
Validates schema that has any of the keywords for composite/compound schema
set as a property. The possible keywords are allOf
, anyOf
, oneOf
, and not
.
This is a raw Validator
class that you most likely do not need to use directly.
See the JSONSchema#create_validator
macro, JSONSchema#from_json
, or JSONSchema.fluent
for common usage of this shard.
Included Modules
Defined in:
render.crvalidator.cr
Constructors
Instance Method Summary
- #children : Array(Validator)
- #children=(children : Array(Validator))
- #keyword : String
- #keyword=(keyword : String)
- #to_cr
- #validate(node : JSON::Any, context = NodeContext.new)