-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreated.json
46 lines (46 loc) · 1.08 KB
/
created.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
{
"version": "1.0.0",
"schemaCompatibility": "1.x",
"name": "userCreated",
"schema": {
"title": "userCreated",
"type": "object",
"properties": {
"id": {
"description": "Unique Id for the user",
"type": "string",
"format": "uuid"
},
"age": {
"description": "User age",
"type": "integer",
"minimum": 0,
"maximum": 120
},
"email": {
"description": "User email",
"type": "string",
"format": "email"
},
"schemaVersion": {
"description": "Metadata field to determine the json schema version used in the message",
"type": "string",
"minLength": 5,
"maxLength": 14,
"pattern": "^(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)$"
},
"timestamp": {
"description": "Metadata field to determine the date of the message",
"type": "integer",
"minimum": 0
}
},
"additionalProperties": false,
"required": [
"id",
"email",
"schemaVersion",
"timestamp"
]
}
}