You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Timestamp Test",
"type": "object",
"properties": {
"@timestamp": {
"description": "The UTC date and time the event was created",
"type": "string",
"format": "date-time"
}
}
}
The first two will validate against the schema, the third one does not.
The standard ISO 8601 date/time specification makes the timezone specification optional. Other JSON Schema libraries handle this correctly (e.g., "check-jsonschema").
The text was updated successfully, but these errors were encountered:
Create a schema:
Create three test JSON files:
The first two will validate against the schema, the third one does not.
The standard ISO 8601 date/time specification makes the timezone specification optional. Other JSON Schema libraries handle this correctly (e.g., "check-jsonschema").
The text was updated successfully, but these errors were encountered: