forked from aws-powertools/powertools-lambda-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgetting_started_validator_standalone_schema.py
More file actions
33 lines (33 loc) · 1.08 KB
/
Copy pathgetting_started_validator_standalone_schema.py
File metadata and controls
33 lines (33 loc) · 1.08 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
INPUT = {
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "http://example.com/example.json",
"type": "object",
"title": "Sample schema",
"description": "The root schema comprises the entire JSON document.",
"examples": [{"user_id": "0d44b083-8206-4a3a-aa95-5d392a99be4a", "powertools": "lessa", "ip": "192.168.0.1"}],
"required": ["user_id", "project", "ip"],
"properties": {
"user_id": {
"$id": "#/properties/user_id",
"type": "string",
"title": "The user_id",
"examples": ["0d44b083-8206-4a3a-aa95-5d392a99be4a"],
"maxLength": 50,
},
"project": {
"$id": "#/properties/project",
"type": "string",
"title": "The project",
"examples": ["powertools"],
"maxLength": 30,
},
"ip": {
"$id": "#/properties/ip",
"type": "string",
"title": "The ip",
"format": "ipv4",
"examples": ["192.168.0.1"],
"maxLength": 30,
},
},
}