Expand description
Request and response schema validation errors and checks. Validation errors and pure verification routines for the Jev protocol specification.
Spec lists four error statuses (401/422/429/529); 422 Unprocessable Entity is the
one this module emits — invalid request or response bodies.
Structs§
- Response
Contract - Request-bound answer expectations retained while an engine consumes the request.
Enums§
- Validation
Error - Validation errors representing violations of the Jev protocol specification.
Constants§
- MAX_
CRITERIA_ OPTIONS - Maximum number of criteria options allowed per question to prevent DoS.
- MAX_
QUESTIONS_ PER_ REQUEST - Maximum number of questions allowed in a single evaluation request to prevent DoS.
Functions§
- validate_
request - Validate a request. Pure — does no I/O.
- validate_
response - Validate a response. Catches the common engine-side bugs:
- validate_
response_ for_ request - Validate a response against its originating request.
Type Aliases§
- Validation
Result - Specialized Result alias for operations returning a
ValidationError.