MCPcopy Index your code
hub / github.com/modelcontextprotocol/registry / addValidationError

Function addValidationError

internal/validators/schema.go:248–255  ·  view source on GitHub ↗

addValidationError processes validation errors and extracts useful information

(result *ValidationResult, validationErr *jsonschema.ValidationError, schema map[string]any)

Source from the content-addressed store, hash-verified

246
247// addValidationError processes validation errors and extracts useful information
248func 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).

Callers 1

validateServerJSONSchemaFunction · 0.85

Calls 1

addDetailedErrorsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…