SEM002: Validity Date Order¶
Severity: Error Category: Semantic Validation
Description¶
The validFrom date must be before validUntil.
Rule Details¶
This rule ensures temporal consistency in credential validity periods. A passport cannot be valid starting from a date that is on or after its expiration date.
Example¶
Invalid¶
Message: validFrom (2025-12-01T00:00:00Z) must be before validUntil (2025-01-01T00:00:00Z)
Valid¶
How to Fix¶
Ensure validFrom is chronologically before validUntil. Check for:
- Typos in date values
- Swapped field values
- Timezone issues
References¶
- W3C Verifiable Credentials
- JSON Path:
$.validFrom,$.validUntil