Expand description
JSON schema diff utilities for 422 responses.
This module provides comprehensive schema validation diffing capabilities for generating informative 422 error responses that help developers understand exactly what schema validation issues exist in their API requests.
Structs§
- Field
Error - Legacy field error structure for backward compatibility
- Schema
Info - Detailed schema constraint information for validation errors
- Validation
Error - Enhanced validation error with detailed schema information
Functions§
- diff
- Compute the difference between expected schema and actual JSON value
- to_
422_ json - Convert validation errors to 422 JSON response format
- to_
enhanced_ 422_ json - Generate enhanced 422 error response with detailed schema information
- validation_
diff - Enhanced validation diff with comprehensive error analysis This function performs detailed validation between expected and actual JSON and provides rich schema context for better error reporting