@stencila/schema
Version:
Stencila schema and other specifications
64 lines (63 loc) • 1.61 kB
JSON
{
"title": "Date",
"@id": "schema:Date",
"extends": "Entity",
"role": "tertiary",
"status": "stable",
"category": "metadata",
"description": "A date encoded as a ISO 8601 string.",
"$comment": "This type serves mainly to disambiguate an ISO 8601 date string from\na plain string. It should generally be used instead of a date formatted string.\n",
"codec": "date",
"properties": {
"type": {
"@id": "schema:type",
"description": "The name of the type.",
"type": "string",
"enum": [
"Date"
],
"default": "Date",
"from": "Entity"
},
"id": {
"@id": "schema:id",
"description": "The identifier for this item.",
"type": "string",
"from": "Entity"
},
"meta": {
"@id": "stencila:meta",
"description": "Metadata associated with this item.",
"type": "object",
"from": "Entity"
},
"value": {
"@id": "schema:value",
"description": "The date as an ISO 8601 string.",
"anyOf": [
{
"type": "string",
"format": "date"
},
{
"type": "string",
"format": "date-time"
}
],
"from": "Date"
}
},
"required": [
"type",
"value"
],
"file": "Date.schema.yaml",
"children": [],
"descendants": [],
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://schema.stenci.la/v0/Date.schema.json",
"source": "https://github.com/stencila/schema/blob/master/Date.schema.yaml",
"type": "object",
"additionalProperties": false,
"propertyAliases": {}
}