Passing URLS (multiple files) using QueryConfig #9385
Unanswered
thibaut-atempo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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