immutable properties complete and tested

This commit is contained in:
2026-07-21 16:25:12 -04:00
parent ff4b9cd24d
commit 350fe29fef
7 changed files with 338 additions and 88 deletions

View File

@ -16,6 +16,7 @@ pub struct ValidationContext<'a> {
pub reporter: bool,
pub overrides: HashSet<String>,
pub parents: Vec<&'a serde_json::Value>,
pub response: bool,
}
impl<'a> ValidationContext<'a> {
@ -27,6 +28,7 @@ impl<'a> ValidationContext<'a> {
overrides: HashSet<String>,
extensible: bool,
reporter: bool,
response: bool,
) -> Self {
let effective_extensible = schema.extensible.unwrap_or(extensible);
Self {
@ -40,6 +42,7 @@ impl<'a> ValidationContext<'a> {
reporter,
overrides,
parents: Vec::new(),
response,
}
}
@ -79,6 +82,7 @@ impl<'a> ValidationContext<'a> {
reporter,
overrides,
parents,
response: self.response,
}
}