mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-08 22:45:25 +00:00
fix: ensure API key values are converted to strings in Postman collection importer.
This commit is contained in:
committed by
Anoop M D
parent
650cb47a8b
commit
062ab00a66
@@ -422,7 +422,7 @@ const importPostmanV2CollectionItem = (brunoParent, item, parentAuth, options) =
|
|||||||
brunoRequestItem.request.auth.mode = 'apikey';
|
brunoRequestItem.request.auth.mode = 'apikey';
|
||||||
brunoRequestItem.request.auth.apikey = {
|
brunoRequestItem.request.auth.apikey = {
|
||||||
key: authValues.key,
|
key: authValues.key,
|
||||||
value: authValues.value,
|
value: authValues.value.toString(), // Convert the value to a string as Postman's schema does not rigidly define the type of it,
|
||||||
placement: "header" //By default we are placing the apikey values in headers!
|
placement: "header" //By default we are placing the apikey values in headers!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user