Package org.apache.solr.common.util
Class JsonSchemaValidator
- java.lang.Object
-
- org.apache.solr.common.util.JsonSchemaValidator
-
public class JsonSchemaValidator extends Object
A very basic and lightweight json schema parsing and data validation tool. This custom tool is created because a) we need to support non json inputs b) to avoiding double parsing (this accepts an already parsed json as a map) It validates most aspects of json schema but it is NOT A FULLY COMPLIANT JSON schema parser or validator. This validator borrow some design's idea from https://github.com/networknt/json-schema-validator
-
-
Constructor Summary
Constructors Constructor Description JsonSchemaValidator(String jsonString)
JsonSchemaValidator(Map<?,?> jsonSchema)
-