You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
since the swagger-php update to v2.0 I got the following console notice when trying to add custom request headers through the swaggervel config file:
window.ApiKeyAuthorization is deprecated. Please use SwaggerClient.ApiKeyAuthorization.
Using window.authorizations is deprecated. Please use SwaggerUi.api.clientAuthorizations.add()
The UI loads as usal but if you try to send a request, a javascript error occurs:
TypeError: auth.apply is not a function
I figured that the view file needs to be updated. My solution:
in index.blade.php change Line 67 to: swaggerApi.clientAuthorizations.add("{!!$requestKey!!}", new SwaggerClient.ApiKeyAuthorization("{!!$requestKey!!}", "{!!$requestValue!!}", "header"));
After this modification everything works just fine.
Would be great if you could implement this in the next revision.
Leonhard
The text was updated successfully, but these errors were encountered:
Hi there,
since the swagger-php update to v2.0 I got the following console notice when trying to add custom request headers through the swaggervel config file:
The UI loads as usal but if you try to send a request, a javascript error occurs:
I figured that the view file needs to be updated. My solution:
in index.blade.php change Line 67 to:
swaggerApi.clientAuthorizations.add("{!!$requestKey!!}", new SwaggerClient.ApiKeyAuthorization("{!!$requestKey!!}", "{!!$requestValue!!}", "header"));
After this modification everything works just fine.
Would be great if you could implement this in the next revision.
Leonhard
The text was updated successfully, but these errors were encountered: