Added support for Auth params in response/example. (#286)

* Added support for correct auth params in original request of response

* Updated collection json schema to latest

* Added tests for feature - response auth params support

* Moved auth params in response behind an option

* Updated option name and description to follow consistent casing

* Updated option id for including auth params in response to be more suitable

Co-authored-by: Vishal Shingala <vishalkumar.shingala@postman.com>
This commit is contained in:
Vishal Shingala
2020-09-09 12:28:17 +05:30
committed by GitHub
parent 70f374904b
commit b5f9fb1c49
7 changed files with 310 additions and 80 deletions

View File

@@ -266,15 +266,6 @@ class SchemaPack {
if (openapi.security) {
authHelper = schemaUtils.getAuthHelper(openapi, openapi.security);
if (authHelper) {
if (authHelper.type === 'api-key') {
// if authHelper has type apikey and has properties in header or query
// we override authHelper to 'noauth'
if (authHelper.properties.in === 'header' || authHelper.properties.in === 'query') {
authHelper = {
type: 'noauth'
};
}
}
generatedStore.collection.auth = authHelper;
}
}