valid-date-or-datetime-property-value
Overview
This rule belongs to the json-validation
ruleset and states that:
A date or datetime property value must use a valid date-time format in its string representation.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Blocking |
Message | JSON data is invalid as the date or datetime property value could not be parsed. |
Code | JSON_V104 |
Type | Validation |
Rule System | Syntax |
Broad Category | JSON Property Value |
Tags | json data preliminary checks validation json date datetime property value |
Suggested Fixes
- Ensure that the date/datetime value follows the correct date-time format.
- Ensure that the date/datetime property value is a valid string value.
- Ensure that the value is enclosed in double quotation marks.
- If the value is quoted, make sure that there is no missing starting/ending quotation mark.
- If the value is quoted, make sure that there are no extra trailing/leading quotation marks around the value.
- Make sure that the property value is properly escaped.
- If there is any extra content before the actual JSON content, remove that.