Date and time types
isoDate
A date on a calendar in ISO 8601 format YYYY-MM-DD.
$schema: https://json-schema.org/draft/2020-12/schema$id: isoDate.yamltype: stringformat: datedescription: A date on a calendar in ISO 8601 format YYYY-MM-DD
/** A date on a calendar in ISO 8601 format YYYY-MM-DD */@example(isoDate.fromISO("2025-01-01"))scalar isoDate extends plainTime;
"2025-01-01"
isoTime
A time on a clock, without a timezone, in ISO 8601 format HH:mm:ss.
$schema: https://json-schema.org/draft/2020-12/schema$id: isoTime.yamltype: stringformat: timedescription: A time on a clock, without a timezone, in ISO 8601 format HH:mm:ss
/** A time on a clock, without a timezone, in ISO 8601 format HH:mm:ss */@example(isoTime.fromISO("17:00:00"))scalar isoTime extends plainTime;
"17:00:00"
utcDateTime
A date and time with timezone in ISO 8601 format YYYY-MM-DDThh:mm:ssZ.
$schema: https://json-schema.org/draft/2020-12/schema$id: isoDateTime.yamltype: stringformat: date-timedescription: A date and time with timezone in ISO 8601 format YYYY-MM-DDThh:mm:ssZ
"2024-02-28T17:00:00Z"
offsetDateTime
A date and time with timezone in ISO 8601 format YYYY-MM-DDThh:mm:ss±hh:mm.
$schema: https://json-schema.org/draft/2020-12/schema$id: offsetDateTime.yamltype: stringformat: date-timedescription: A date and time with timezone in ISO 8601 format YYYY-MM-DDThh:mm:ss±hh:mm
"2024-02-28T17:00:00+01:00"