Skip to content

Commit c32f9e6

Browse files
authored
Refactor SampleQueries schema structure
1 parent 547dc7d commit c32f9e6

File tree

1 file changed

+66
-70
lines changed

1 file changed

+66
-70
lines changed

tests/samples.schema.json

Lines changed: 66 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -3,83 +3,79 @@
33
"properties": {
44
"SampleQueries": {
55
"type": "array",
6-
"items": [
7-
{
8-
"type": "object",
9-
"properties": {
10-
"id": {
11-
"type": "string",
12-
"format": "uuid"
13-
},
14-
"category": {
15-
"type": "string"
16-
},
17-
"method": {
18-
"type": "string",
19-
"enum": [
20-
"GET",
21-
"POST",
22-
"PUT",
23-
"PATCH",
24-
"DELETE"
25-
]
26-
},
27-
"humanName": {
28-
"type": "string"
29-
},
30-
"requestUrl": {
31-
"type": "string"
32-
},
33-
"docLink": {
34-
"type": "string",
35-
"format": "uri"
36-
},
37-
"tip": {
38-
"type": "string"
39-
},
40-
"postBody": {
41-
"type": "string"
42-
},
43-
"headers": {
44-
"type": "array",
45-
"items": [
46-
{
47-
"type": "object",
48-
"properties": {
49-
"name": {
50-
"type": "string"
51-
},
52-
"value": {
53-
"type": "string"
54-
}
55-
},
56-
"additionalProperties": false,
57-
"required": [
58-
"name",
59-
"value"
60-
]
6+
"items": {
7+
"type": "object",
8+
"properties": {
9+
"id": {
10+
"type": "string",
11+
"format": "uuid"
12+
},
13+
"category": {
14+
"type": "string"
15+
},
16+
"method": {
17+
"type": "string",
18+
"enum": [
19+
"GET",
20+
"POST",
21+
"PUT",
22+
"PATCH",
23+
"DELETE"
24+
]
25+
},
26+
"humanName": {
27+
"type": "string"
28+
},
29+
"requestUrl": {
30+
"type": "string"
31+
},
32+
"docLink": {
33+
"type": "string",
34+
"format": "uri"
35+
},
36+
"tip": {
37+
"type": "string"
38+
},
39+
"postBody": {
40+
"type": "string"
41+
},
42+
"headers": {
43+
"type": "array",
44+
"items": {
45+
"type": "object",
46+
"properties": {
47+
"name": {
48+
"type": "string"
49+
},
50+
"value": {
51+
"type": "string"
6152
}
53+
},
54+
"additionalProperties": false,
55+
"required": [
56+
"name",
57+
"value"
6258
]
63-
},
64-
"skipTest": {
65-
"type": "boolean"
6659
}
6760
},
68-
"additionalProperties": false,
69-
"required": [
70-
"id",
71-
"category",
72-
"method",
73-
"humanName",
74-
"requestUrl",
75-
"docLink"
76-
]
77-
}
78-
]
61+
"skipTest": {
62+
"type": "boolean"
63+
}
64+
},
65+
"additionalProperties": false,
66+
"required": [
67+
"id",
68+
"category",
69+
"method",
70+
"humanName",
71+
"requestUrl",
72+
"docLink"
73+
]
74+
}
7975
}
8076
},
8177
"additionalProperties": false,
8278
"required": [
8379
"SampleQueries"
8480
]
85-
}
81+
}

0 commit comments

Comments
 (0)