Expand description
Validation error types for instance validation
This module provides spec-aligned error codes for XML instance validation against XSD schemas. Error codes follow the XSD specification anchors:
cvc-*- Instance validation constraints (e.g.,cvc-elt,cvc-type)cos-*- Component constraints (e.g.,cos-valid-default)src-*- Schema representation constraints (e.g.,src-element)
Structs§
- Validation
Error - Instance validation error with spec-aligned constraint code
Functions§
- error
- Create a validation error with the given constraint code and message
- error_
with_ path - Create a validation error with element path information
- facet_
constraint_ code - Map a FacetError variant to its specific cvc-* constraint code
- from_
facet_ error - Convert a facet error to an instance validation error
- from_
value_ error - Convert a type validation error to an instance validation error
- value_
error_ constraint_ code - Map a TypeValidationError variant to its default cvc-* constraint code
Type Aliases§
- Validation
Result - Result type for instance validation operations