mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user