-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcropStage.schema.json
70 lines (68 loc) · 2.02 KB
/
cropStage.schema.json
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"definitions": {
"flamelink_meta": {
"type": "object",
"properties": {
"schema": { "type": "string", "enum": ["cropStage"] },
"schemaType": { "type": "string" },
"locale": { "type": "string" },
"env": { "type": "string" },
"docId": { "type": "string" },
"fl_id": { "type": "string" }
},
"required": ["schema", "locale", "env", "docId", "fl_id"]
},
"tags" : {
"type" : "array",
"items": { "type" : "string" }
},
"status" : {
"type" : "string",
"enum" : ["DRAFT", "PUBLISHED"]
},
"path_reference" : {
"type" : "object",
"properties": {
"_path": {
"type" : "object",
"title": "Segments define a path to the firebase storage solutions",
"properties": {
"segments" : {
"type" : "array",
"items": { "type" : "string" }
}
},
"required" : [ "segments" ]
}
},
"required": [ "_path" ]
},
"image" : {
"type" : "array",
"title": "Path to the image in Cloud Store",
"items": { "$ref": "#/definitions/path_reference"}
},
"related_articles" : {
"type" : "array",
"items": {
"type" : "object",
"title": "Path to the article in Firestore",
"properties": {
"article": { "$ref" : "#/definitions/path_reference" }
},
"required": [ "article" ]
}
}
},
"type" : "object",
"title": "Crop Stage object",
"properties" : {
"_fl_meta_" : { "$ref" : "#/definitions/flamelink_meta"},
"crop" : { "type" : "string" },
"stageName" : { "type" : "string" },
"status": { "$ref" : "#/definitions/status" },
"content": { "type" : "string" },
"relatedArticles": { "$ref" : "#/definitions/related_articles" }
},
"required" : ["crop", "stageName", "status", "content", "_fl_meta_"]
}