class JSONSchema::CompositeValidator

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.cr
validator.cr

Constructors

Instance Method Summary

Constructor Detail


[View source]

Instance Method Detail

def children : Array(Validator) #

[View source]
def children=(children : Array(Validator)) #

[View source]
def keyword : String #

[View source]
def keyword=(keyword : String) #

[View source]
def to_cr #

[View source]
def validate(node : JSON::Any, context = NodeContext.new) #

[View source]