fix/generate code auth header validation (#2490)

* geenrate code for request to include collection auth headers only if request auth is of type inherit

* validations
This commit is contained in:
lohit
2024-06-21 10:44:24 +05:30
committed by GitHub
parent 1e2b07dead
commit 929d2b5299
2 changed files with 5 additions and 5 deletions

View File

@@ -162,7 +162,7 @@ const prepareRequest = (request, collectionRoot, collectionPath) => {
method: request.method,
url,
headers,
pathParams: request.params.filter((param) => param.type === 'path'),
pathParams: request?.params?.filter((param) => param.type === 'path'),
responseType: 'arraybuffer'
};