forked from Showndarya/Hacktoberfest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.json
More file actions
37 lines (37 loc) · 686 Bytes
/
schema.json
File metadata and controls
37 lines (37 loc) · 686 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
31
32
33
34
35
36
37
{
"$schema": "http://json-schema.org/schema#",
"title": "Vocabulary",
"type": "object",
"required": [
"word",
"definitions",
"parts-of-speech"
],
"properties": {
"word": {
"type": "string",
"pattern": "^[A-Z][a-z]?([-_]*[A-Z]*[a-z]+)*$"
},
"definitions": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1,
"uniqueItems": true
},
"parts-of-speech": {
"enum": [
"Noun",
"Pronoun",
"Verb",
"Adverb",
"Adjective",
"Preposition",
"Conjunction",
"Interjection"
]
}
},
"additionalProperties": false
}