docs(rust): Update README
This commit is contained in:
parent
c496fa2d23
commit
cd89158444
|
@ -61,7 +61,8 @@ use serde_json::json;
|
||||||
fn main() -> Result<(), CompilationError> {
|
fn main() -> Result<(), CompilationError> {
|
||||||
let schema = json!({"maxLength": 5});
|
let schema = json!({"maxLength": 5});
|
||||||
let instance = json!("foo");
|
let instance = json!("foo");
|
||||||
// Draft is detected automatically with fallback to Draft7
|
// Draft is detected automatically
|
||||||
|
// with fallback to Draft7
|
||||||
let compiled = JSONSchema::compile(&schema)?;
|
let compiled = JSONSchema::compile(&schema)?;
|
||||||
assert!(compiled.is_valid(&instance));
|
assert!(compiled.is_valid(&instance));
|
||||||
Ok(())
|
Ok(())
|
||||||
|
@ -70,7 +71,7 @@ fn main() -> Result<(), CompilationError> {
|
||||||
|
|
||||||
## Bindings
|
## Bindings
|
||||||
|
|
||||||
- Python - See the `/python` directory
|
- Python - See the `./bindings/python` directory
|
||||||
- Ruby - a [crate](https://github.com/driv3r/rusty_json_schema) by @driv3r
|
- Ruby - a [crate](https://github.com/driv3r/rusty_json_schema) by @driv3r
|
||||||
|
|
||||||
## Performance
|
## Performance
|
||||||
|
|
Loading…
Reference in New Issue