-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(oas): oas query parameters style and explode tests
relates to #120
- Loading branch information
Showing
4 changed files
with
308 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
116 changes: 116 additions & 0 deletions
116
packages/oas/tests/fixtures/query-params.oas.result.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
[ | ||
{ | ||
"queryString": [ | ||
{ | ||
"name": "p", | ||
"value": "lorem,lorem" | ||
} | ||
], | ||
"url": "http://petstore.swagger.io/v1/formStyleParamArray?p=lorem%2Clorem", | ||
"method": "GET", | ||
"headers": [], | ||
"httpVersion": "HTTP/1.1", | ||
"cookies": [], | ||
"headersSize": 0, | ||
"bodySize": 0 | ||
}, | ||
{ | ||
"queryString": [ | ||
{ | ||
"name": "p", | ||
"value": "lorem" | ||
}, | ||
{ | ||
"name": "p", | ||
"value": "lorem" | ||
} | ||
], | ||
"url": "http://petstore.swagger.io/v1/formStyleParamArrayExploded?p=lorem&p=lorem", | ||
"method": "GET", | ||
"headers": [], | ||
"httpVersion": "HTTP/1.1", | ||
"cookies": [], | ||
"headersSize": 0, | ||
"bodySize": 0 | ||
}, | ||
{ | ||
"queryString": [ | ||
{ | ||
"name": "p", | ||
"value": "key,x,value,42" | ||
} | ||
], | ||
"url": "http://petstore.swagger.io/v1/formStyleParamObject?p=key%2Cx%2Cvalue%2C42", | ||
"method": "GET", | ||
"headers": [], | ||
"httpVersion": "HTTP/1.1", | ||
"cookies": [], | ||
"headersSize": 0, | ||
"bodySize": 0 | ||
}, | ||
{ | ||
"queryString": [ | ||
{ | ||
"name": "key", | ||
"value": "x" | ||
}, | ||
{ | ||
"name": "value", | ||
"value": "42" | ||
} | ||
], | ||
"url": "http://petstore.swagger.io/v1/formStyleParamObjectExploded?key=x&value=42", | ||
"method": "GET", | ||
"headers": [], | ||
"httpVersion": "HTTP/1.1", | ||
"cookies": [], | ||
"headersSize": 0, | ||
"bodySize": 0 | ||
}, | ||
{ | ||
"queryString": [ | ||
{ | ||
"name": "p", | ||
"value": "42 42" | ||
}, | ||
{ | ||
"name": "pExploded", | ||
"value": "42" | ||
}, | ||
{ | ||
"name": "pExploded", | ||
"value": "42" | ||
} | ||
], | ||
"url": "http://petstore.swagger.io/v1/spaceDelimitedStyleParam?p=42+42&pExploded=42&pExploded=42", | ||
"method": "GET", | ||
"headers": [], | ||
"httpVersion": "HTTP/1.1", | ||
"cookies": [], | ||
"headersSize": 0, | ||
"bodySize": 0 | ||
}, | ||
{ | ||
"queryString": [ | ||
{ | ||
"name": "p", | ||
"value": "42|42" | ||
}, | ||
{ | ||
"name": "pExploded", | ||
"value": "42" | ||
}, | ||
{ | ||
"name": "pExploded", | ||
"value": "42" | ||
} | ||
], | ||
"url": "http://petstore.swagger.io/v1/pipeDelimitedStyleParam?p=42%7C42&pExploded=42&pExploded=42", | ||
"method": "GET", | ||
"headers": [], | ||
"httpVersion": "HTTP/1.1", | ||
"cookies": [], | ||
"headersSize": 0, | ||
"bodySize": 0 | ||
} | ||
] |
Oops, something went wrong.