addValidationError processes validation errors and extracts useful information
(result *ValidationResult, validationErr *jsonschema.ValidationError, schema map[string]any)
| 246 | |
| 247 | // addValidationError processes validation errors and extracts useful information |
| 248 | func addValidationError(result *ValidationResult, validationErr *jsonschema.ValidationError, schema map[string]any) { |
| 249 | // Use DetailedOutput to get the nested error details |
| 250 | detailed := validationErr.DetailedOutput() |
| 251 | |
| 252 | // Process the detailed error structure |
| 253 | |
| 254 | addDetailedErrors(result, detailed, schema) |
| 255 | } |
| 256 | |
| 257 | // ConvertJSONPointerToBracketNotation converts a JSON Pointer path (RFC 6901) to bracket notation |
| 258 | // format to match the format used by semantic validation (ValidationContext). |
no test coverage detected
searching dependent graphs…