Wesley Schwengle
117dcc9b16
Disable the validation badge for those who do not want it ( #5994 )
...
* disabled on string values: "127.0.0.1", "localhost", "none"
2020-06-10 15:31:35 -07:00
John
21f51494a2
fix: support variables in auth urls ( #5913 )
2020-06-10 14:45:02 -07:00
mircohaug
eaca2f6fd8
Add empty data param to cURL if no POST request body was given ( #6017 )
...
* Add empty data param to cURL if no request body was given
Some middleware applications do not allow POST requests without a content-length header. By adding a empty data parameter to the curl command, the content-length header will be set by curl. Besides this it is more obvious to the user that no request body is sent.
* use double quotes like the rest of the curl command
2020-05-29 15:10:22 -07:00
Tim Lai
96c7b4cbf5
fix: curl array support within multipart/form-data ( #3838 ) ( #5999 )
...
ft: utils.createObjWithHashedKeys
ft: curlify.extractKey
test: curlify with array representation
2020-05-13 16:59:37 -07:00
kyle
75a0e5d5dc
fix(validateParam): validate JSON parameter values + support Parameter.content ( #5657 )
...
* improve(getParameterSchema): ParameterSchemaDescriptor pattern
* chore: update usage of `getParameterSchema`
* consider `Parameter.content` media type when validating JSON values
2019-10-11 11:20:23 -07:00
poveilleux
139592e353
feat: add PKCE support for OAuth2 Authorization Code flows ( #5361 )
...
* Add PKCE support.
* Fix tests
* Update oauth2.md
* Rename usePkce
* Fix the BrokenComponent error
* Update oauth2.md
* Remove isCode variable. Remove uuid4 dependency.
* Remove utils functions
* Import crypto
* Fix tests
* Fix the tests
* Cleanup
* Fix code_challenge generation
* Move code challenge and verifier to utils for mocks. Update tests.
* Mock the PKCE methods in the utils file properly.
* Add missing expect
* use target-method spies
* Add comments to explain test values.
* Get rid of jsrsasign.
2019-10-07 17:24:43 -07:00
kyle
00c8e964e7
fix: accept string-represented values in required array runtime validation ( #5609 )
...
* rename `listCheck` -> `arrayListCheck`
* allow non-empty strings to quality a required array value
2019-09-15 12:17:42 -07:00
kyle
f523ec40f0
housekeeping: reorganize and rewire Mocha tests ( #5600 )
...
* move Mocha-run tests to `test/mocha`
* fix relative paths
* fix JSX test paths
* update stagnated JSX tests
* `test/setup.js` -> `test/mocha/setup.js`
* use regex+globstar for test matching
* remove `console.log`
2019-09-10 21:26:21 -07:00