-
Notifications
You must be signed in to change notification settings - Fork 1
/
form.schema.json
executable file
·38 lines (38 loc) · 1.3 KB
/
form.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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://standards.mnoforms.com/specs/v1/form.schema.json",
"title": "mnoforms : Specification for Form",
"description": "The standard form definition specification for MNO Forms",
"additionalProperties": false,
"type": "object",
"properties": {
"meta": {
"description": "Anything extra should be added here. Let's not compromise the schema",
"type": "object",
"additionalProperties": true,
"properties": {
}
},
"fields": {
"description": "The actual form fields definition",
"type": "array",
"items": {
"$ref": "https://standards.mnoforms.com/specs/v1/field.schema.json"
}
},
"events": {
"description": "The events that the form should listen to",
"type": "array",
"items": {
"$ref": "https://standards.mnoforms.com/specs/v1/event.schema.json"
}
},
"extras": {
"description": "Extra options for the form, for the form engine to use.",
"type": "object",
"additionalProperties": true,
"properties": {
}
}
}
}