Closed elect86 closed 6 months ago
Schema and json here
Validation passes with online validator
fun main() { val dataset = File("/home/elect/Downloads/DATASETS.json").readText() val schema = JSONSchema.parseFile("/home/elect/Downloads/SCHEMA.json") println(schema.validate(dataset)) val output = schema.validateBasic(dataset) output.errors?.forEach { println("${it.error}, ${it.instanceLocation}, ${it.keywordLocation}, ${it.absoluteKeywordLocation}") } }
false A subschema had errors, #, #, file:/home/elect/Downloads/SCHEMA.json# Incorrect type, expected object, #, #/type, file:/home/elect/Downloads/SCHEMA.json#/type
Sorry, my fault
Schema and json here
Validation passes with online validator