-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.json
More file actions
45 lines (45 loc) · 1.32 KB
/
example.json
File metadata and controls
45 lines (45 loc) · 1.32 KB
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
{
"$id": "https://example.com/schema/example.schema.json",
"$schema": "https://docs.commongateway.nl/schemas/Entity.schema.json",
"version": "0.2",
"title": "Example",
"type": "object",
"description": "An example Schema object.",
"properties": {
"firstName": {
"type": "string",
"description": "The person's first name.",
"example": "John",
"required": true
},
"lastName": {
"type": "string",
"description": "The person's last name.",
"example": "Doe",
"required": true
},
"age": {
"type": "integer",
"description": "Age in years which must be equal to or greater than zero.",
"example": 25,
"minimum": 18
},
"description": {
"type": "string",
"description": "A description of this Example object"
},
"relationExample": {
"description": "An example of an inversed by relation to another Schema",
"example": "{ \"postalCode\": \"1234AB\", \"notes\": [\"note1\", \"note2\"] }",
"$ref": "https://example.com/schema/relationExample.schema.json",
"inversedBy": "example"
},
"relationExamples": {
"type": "array",
"description": "An example of an array of objects",
"items": {
"$ref": "https://example.com/schema/relationExample.schema.json"
}
}
}
}