-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask_schema.json
More file actions
30 lines (30 loc) · 812 Bytes
/
task_schema.json
File metadata and controls
30 lines (30 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Task",
"description": "Schema for task documents in Firestore Todo app",
"type": "object",
"properties": {
"title": {
"description": "Title of the task",
"type": "string"
},
"details": {
"description": "Optional detailed description of the task",
"type": "string"
},
"completed": {
"description": "Whether the task is completed",
"type": "boolean"
},
"created_time": {
"description": "Timestamp when the task was created",
"type": "string",
"format": "date-time"
},
"user_ref": {
"description": "Reference path to the user document",
"type": "string"
}
},
"required": ["title", "completed", "created_time", "user_ref"]
}