-
Notifications
You must be signed in to change notification settings - Fork 4
/
Common.json
53 lines (53 loc) · 1.48 KB
/
Common.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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "http://raw.githubusercontent.com/peterataylor/om-json/master/Common.json",
"title": "Common",
"description": "A collection of commonly used types. Should maybe come from somehwere else, one day.",
"definitions": {
"count": {
"title": "count",
"type": "integer"
},
"measure": {
"title": "measure",
"description": "scaled number - uom is optional, to support the case where a common uom is used in a collection",
"type": "object",
"properties": {
"value": { "type": "number" },
"uom": { "type": "string" }
},
"required": [ "value" ],
"additionalProperties": false
},
"text": {
"title": "text",
"type": "string"
},
"truth": {
"title": "truth",
"type": "boolean"
},
"vocabTerm": {
"title": "vocabTerm",
"description": "term with optional vocabulary source",
"type": "object",
"properties": {
"term": { "type": "string" },
"vocabulary": { "type": "string", "format": "uri" }
},
"required": [ "term" ],
"additionalProperties": false
},
"link": {
"title": "link",
"type": "object",
"properties": {
"href": { "type": "string", "format": "uri" },
"rel": { "type": "string", "format": "uri" },
"title": { "type": "string" }
},
"required": [ "href" ],
"additionalProperties":false
}
}
}