Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fb25224d22 | |||
| 01368305de |
@ -251,12 +251,18 @@ fn test_library_api() {
|
|||||||
{
|
{
|
||||||
"code": "REQUIRED_FIELD_MISSING",
|
"code": "REQUIRED_FIELD_MISSING",
|
||||||
"message": "Missing name",
|
"message": "Missing name",
|
||||||
"details": { "path": "name" }
|
"details": {
|
||||||
|
"path": "name",
|
||||||
|
"schema": "source_schema"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"code": "STRICT_PROPERTY_VIOLATION",
|
"code": "STRICT_PROPERTY_VIOLATION",
|
||||||
"message": "Unexpected property 'wrong'",
|
"message": "Unexpected property 'wrong'",
|
||||||
"details": { "path": "wrong" }
|
"details": {
|
||||||
|
"path": "wrong",
|
||||||
|
"schema": "source_schema"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|||||||
@ -69,7 +69,7 @@ impl Validator {
|
|||||||
path: Some(e.path),
|
path: Some(e.path),
|
||||||
cause: None,
|
cause: None,
|
||||||
context: None,
|
context: None,
|
||||||
schema: None,
|
schema: Some(schema_id.to_string()),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
@ -83,7 +83,7 @@ impl Validator {
|
|||||||
path: Some(e.path),
|
path: Some(e.path),
|
||||||
cause: None,
|
cause: None,
|
||||||
context: None,
|
context: None,
|
||||||
schema: None,
|
schema: Some(schema_id.to_string()),
|
||||||
},
|
},
|
||||||
}]),
|
}]),
|
||||||
}
|
}
|
||||||
@ -95,7 +95,7 @@ impl Validator {
|
|||||||
path: Some("/".to_string()),
|
path: Some("/".to_string()),
|
||||||
cause: None,
|
cause: None,
|
||||||
context: None,
|
context: None,
|
||||||
schema: None,
|
schema: Some(schema_id.to_string()),
|
||||||
},
|
},
|
||||||
}])
|
}])
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user