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
I'm trying to find a way to pass URLS parameter directly in the browser's url (with queryConfigEnabled: True).
It's working great when passing a single url (in url parameter without S) but I've not been able to make it work with URLS (passing a JSON array).
I tried to pass the JSON array as an URL-encoded string and also directly but no method actually worked.
Example without encoding :
swagger-ui/?urls=[{url: "test1.yml", name: "test1"},{url: "test2.yml", name: "test2"}]
Example with URL encoding :
swagger-ui/?urls=%5B%7Burl%3A%20%22test1.yml%22%2C%20name%3A%20%22test1%22%7D%2C%7Burl%3A%20%22test2.yml%22%2C%20name%3A%20%22test2%22%7D%5D
Error is :
Is this method supported ? Is there any way to make it work with queryConfig ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm trying to find a way to pass URLS parameter directly in the browser's url (with queryConfigEnabled: True).
It's working great when passing a single url (in url parameter without S) but I've not been able to make it work with URLS (passing a JSON array).
I tried to pass the JSON array as an URL-encoded string and also directly but no method actually worked.
Example without encoding :
swagger-ui/?urls=[{url: "test1.yml", name: "test1"},{url: "test2.yml", name: "test2"}]
Example with URL encoding :
swagger-ui/?urls=%5B%7Burl%3A%20%22test1.yml%22%2C%20name%3A%20%22test1%22%7D%2C%7Burl%3A%20%22test2.yml%22%2C%20name%3A%20%22test2%22%7D%5D
Error is :
Is this method supported ? Is there any way to make it work with queryConfig ?
Thank you in advance for your help.
Beta Was this translation helpful? Give feedback.
All reactions