👎Deprecated:
Will be extracted to mockforge-contracts crate
Expand description
Pillars: [Contracts]
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 Deprecated - Legacy field error structure for backward compatibility
- Schema
Info Deprecated - Detailed schema constraint information for validation errors
- Validation
Error Deprecated - Enhanced validation error with detailed schema information
Functions§
- diff
Deprecated - Compute the difference between expected schema and actual JSON value
- to_
422_ json Deprecated - Convert validation errors to 422 JSON response format
- to_
enhanced_ 422_ json Deprecated - Generate enhanced 422 error response with detailed schema information
- validation_
diff Deprecated - 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