Skip to content

Commit

Permalink
docs: make request method an enum
Browse files Browse the repository at this point in the history
  • Loading branch information
eynopv committed Aug 15, 2024
1 parent 6e70541 commit 7076ce8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/json-schemas/request.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
"properties": {
"method": {
"type": "string",
"description": "HTTP method"
"description": "HTTP method",
"enum": ["GET", "POST", "PUT", "PATCH", "DELETE"]
},
"path": {
"type": "string",
"description": "URL destination of request"
},
"body": {
"description": "Body of the request"
"description": "Body of the request as map or string"
},
"headers": {
"type": "object",
Expand Down

0 comments on commit 7076ce8

Please sign in to comment.