-m fixed bug with STI and different type shapes that don't require kind discrimination

This commit is contained in:
2026-04-16 00:19:10 -04:00
parent 57baa389b6
commit d3cb72a5e2
4 changed files with 136 additions and 11 deletions

View File

@ -24,9 +24,6 @@ impl<'a> ValidationContext<'a> {
if let Some(obj) = self.instance.as_object() {
for key in obj.keys() {
if key == "type" || key == "kind" {
continue; // Reserved keywords implicitly allowed
}
if !result.evaluated_keys.contains(key) && !self.overrides.contains(key) {
result.errors.push(ValidationError {
code: "STRICT_PROPERTY_VIOLATION".to_string(),