forked from Kostoni/allure_sample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jsonschemas.py
74 lines (74 loc) · 2.34 KB
/
jsonschemas.py
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
jsonschemas = {
"http://httpbin.org/get": {
"type": "object",
"properties": {
"args": {
"type": "object"
},
"headers": {
"type": "object",
"properties": {
"Accept": {
"type": "string",
"examples": [
"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8"
]
},
"Accept-Encoding": {
"type": "string",
"examples": [
"gzip, deflate"
]
},
"Connection": {
"type": "string",
"examples": [
"close"
]
},
"Host": {
"type": "string",
"examples": [
"httpbin.org"
]
},
"User-Agent": {
"type": "string",
"examples": [
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36"
]
}
},
"required": ["Accept", "Accept-Encoding", "Connection", "Host", "User-Agent"],
"additionalProperties": False
},
"origin": {
"type": "string",
"examples": [
"109.194.155.9"
]
},
"url": {
"type": "string",
"examples": [
"http://httpbin.org/get?p-1=1"
]
}
},
"required": ["args", "headers", "origin", "url"],
"additionalProperties": False
},
"http://httpbin.org/ip": {
"type": "object",
"properties": {
"origin": {
"type": "string",
"examples": [
"109.194.155.9"
]
}
},
"required": ["origin"],
"additionalProperties": False
}
}