boon test suite itself passing
This commit is contained in:
@ -10,7 +10,7 @@ let mut schemas = Schemas::new(); // container for compiled schemas
|
||||
let mut compiler = Compiler::new();
|
||||
let sch_index = compiler.compile("schema.json", &mut schemas)?;
|
||||
let instance: Value = serde_json::from_reader(File::open("instance.json")?)?;
|
||||
let valid = schemas.validate(&instance, sch_index).is_ok();
|
||||
let valid = schemas.validate(&instance, sch_index, None).is_ok();
|
||||
# Ok(())
|
||||
# }
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user