Skip to content

Commit 6e70541

Browse files
committedAug 15, 2024
docs: add json schema of request
1 parent da1d744 commit 6e70541

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
 

‎docs/json-schemas/request.schema.json

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://example.com/request.schema.json",
4+
"title": "Request Schema",
5+
"description": "A schema of lac request",
6+
"type": "object",
7+
"properties": {
8+
"method": {
9+
"type": "string",
10+
"description": "HTTP method"
11+
},
12+
"path": {
13+
"type": "string",
14+
"description": "URL destination of request"
15+
},
16+
"body": {
17+
"description": "Body of the request"
18+
},
19+
"headers": {
20+
"type": "object",
21+
"description": "Headers as map of strings"
22+
},
23+
"variables": {
24+
"type": "object",
25+
"description": "Values of variables as map of strings"
26+
}
27+
}
28+
}

0 commit comments

Comments
 (0)