Skip to content

Commit 7076ce8

Browse files
committed
docs: make request method an enum
1 parent 6e70541 commit 7076ce8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/json-schemas/request.schema.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77
"properties": {
88
"method": {
99
"type": "string",
10-
"description": "HTTP method"
10+
"description": "HTTP method",
11+
"enum": ["GET", "POST", "PUT", "PATCH", "DELETE"]
1112
},
1213
"path": {
1314
"type": "string",
1415
"description": "URL destination of request"
1516
},
1617
"body": {
17-
"description": "Body of the request"
18+
"description": "Body of the request as map or string"
1819
},
1920
"headers": {
2021
"type": "object",

0 commit comments

Comments
 (0)