diff options
Diffstat (limited to '.astro/collections')
| -rw-r--r-- | .astro/collections/reading.schema.json | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/.astro/collections/reading.schema.json b/.astro/collections/reading.schema.json new file mode 100644 index 0000000..53b592e --- /dev/null +++ b/.astro/collections/reading.schema.json @@ -0,0 +1,71 @@ +{ + "$ref": "#/definitions/reading", + "definitions": { + "reading": { + "type": "object", + "properties": { + "$schema": { + "type": "string" + } + }, + "additionalProperties": { + "type": "object", + "properties": { + "year": { + "type": "number" + }, + "entries": { + "type": "array", + "items": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "author": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "book", + "article" + ], + "default": "book" + }, + "status": { + "type": "string", + "enum": [ + "done", + "reading" + ], + "default": "done" + }, + "isbn": { + "type": "string" + }, + "url": { + "type": "string", + "format": "uri" + }, + "note": { + "type": "string" + } + }, + "required": [ + "title" + ], + "additionalProperties": false + } + } + }, + "required": [ + "year", + "entries" + ], + "additionalProperties": false + } + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" +}
\ No newline at end of file |
