Method: JSONSchemer::Draft202012::Vocab::Applicator::Then#validate
- Defined in:
- lib/json_schemer/draft202012/vocab/applicator.rb
#validate(instance, instance_location, keyword_location, context) ⇒ Object
99 100 101 102 103 |
# File 'lib/json_schemer/draft202012/vocab/applicator.rb', line 99 def validate(instance, instance_location, keyword_location, context) return unless context.adjacent_results.key?(If) && context.adjacent_results.fetch(If).annotation subschema_result = parsed.validate_instance(instance, instance_location, keyword_location, context) result(instance, instance_location, keyword_location, subschema_result.valid, subschema_result.nested) end |