Get whether to validate on write operations (default: true)
(&self)
| 342 | |
| 343 | /// Get whether to validate on write operations (default: true) |
| 344 | pub fn get_validate_on_write(&self) -> bool { |
| 345 | self.get_parameter("schema_validate_on_write") |
| 346 | .and_then(|v| match v { |
| 347 | Value::Boolean(b) => Some(*b), |
| 348 | _ => None, |
| 349 | }) |
| 350 | .unwrap_or(true) |
| 351 | } |
| 352 | |
| 353 | /// Set whether to allow unknown properties not defined in schema |
| 354 | pub fn set_allow_unknown_properties(&mut self, allow: bool) { |
nothing calls this directly
no test coverage detected