Compare commits

...

2 Commits

Author SHA1 Message Date
fb25224d22 version: 1.0.160 2026-06-18 20:31:49 -04:00
01368305de fixed missing schema ids in validation results 2026-06-18 20:31:35 -04:00
3 changed files with 12 additions and 6 deletions

View File

@ -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"
}
} }
] ]
}) })

View File

@ -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()),
}, },
}]) }])
} }

View File

@ -1 +1 @@
1.0.159 1.0.160