Type definition
Properties
Machine-readable error type. One of 13 possible values:
invalid_marker_formatno_valid_markersnewline_after_idduplicate_idinvented_idmissing_id_gapcollapsed_speakerstruncated_segmentarabic_leakempty_parentheseslength_mismatchall_capsmultiword_translit_without_gloss
Human-readable error description. Includes context about what went wrong.Example:
"Arabic script detected: \"الله\""Character position range in the raw response string where the error occurred.The
end index is exclusive. Use these indices to highlight errors in UI.The exact text that triggered the error. Extracted from the response using the
range.Example: "الله" for an arabic_leak errorOptional segment ID where the error occurred. Present when the error can be associated with a specific segment.Example:
"P1234"Optional stable rule identifier for tooling/triage. May be more specific than
type.Used internally for tracking validation rules.Usage examples
Highlighting errors in UI
Grouping errors by type
Filtering by segment
Error range visualization
Related types
- ValidationErrorType - All possible error type values
- ValidationConfig - Configure error detection thresholds
- ValidationResponseResult - Contains array of errors
Related functions
- validateTranslationResponse - Produces validation errors
- VALIDATION_ERROR_TYPE_INFO - Human-readable error descriptions