Event
A description of an event with an associated date (and possible time).
Property | Type | Required | Description |
---|---|---|---|
name | string | Yes | Human-readable name of the event |
date | isoDate | Yes | Date of the event in in ISO 8601 format: YYYY-MM-DD |
time | isoTime | No | Time of the event in in ISO 8601 format: HH:MM:SS |
description | string | No | A description of the event |
Formats
Section titled “Formats”A JSON example of this field is:
{ "name": "Application Deadline", "date": "2024-04-30", "time": "17:00:00", "description": "Final deadline for all submissions"}
The JSON schema for this field is:
$schema: https://json-schema.org/draft/2020-12/schema$id: Event.yamltype: objectproperties: name: type: string description: Human-readable name of the event (e.g., 'Application posted', 'Question deadline') date: $ref: isoDate.yaml description: "Date of the event in in ISO 8601 format: YYYY-MM-DD" time: $ref: isoTime.yaml description: "Time of the event in in ISO 8601 format: HH:MM:SS" description: type: string description: Description of what this event representsrequired: - name - datedescription: Description of an event with an associated date (and possible time)
The TypeSpec code for this field is:
/** Description of an event with an associated date (and possible time) */model Event { /** Human-readable name of the event (e.g., 'Application posted', 'Question deadline') */ name: string;
/** Date of the event in in ISO 8601 format: YYYY-MM-DD */ date: isoDate;
/** Time of the event in ISO 8601 format: HH:MM:SS */ time?: isoTime;
/** Description of what this event represents */ description?: string;}