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
In my project, I attempted to directly include the master branch as a dependency using {:phoenix_swagger, git: "https://github.com/xerions/phoenix_swagger.git"} to benefit from the latest updates to Swagger UI 5.2. However, when I request the display of my Swagger UI, I am instead directed to the default 'PetStore' example.
I believe this issue stems from the 'priv/static/swagger-initializer.js' file, which utilizes the 'url' parameter set to 'https://petstore.swagger.io/v2/swagger.json'. This parameter is likely directing the Swagger UI to display the default PetStore example instead of my custom project's Swagger documentation.
Could you please advise me on how to update the code to resolve this issue? I would greatly appreciate your assistance.
Thank you in advance for your time and consideration.
Sincerely,
The text was updated successfully, but these errors were encountered:
I encountered the same problem, and I was able to work around it by modifying that url to point to swagger.json (commit db7461d). Credit to @nikola-frame who showed me the way in mainframe2@1f84113 .
Hi,
In my project, I attempted to directly include the master branch as a dependency using {:phoenix_swagger, git: "https://github.com/xerions/phoenix_swagger.git"} to benefit from the latest updates to Swagger UI 5.2. However, when I request the display of my Swagger UI, I am instead directed to the default 'PetStore' example.
I believe this issue stems from the 'priv/static/swagger-initializer.js' file, which utilizes the 'url' parameter set to 'https://petstore.swagger.io/v2/swagger.json'. This parameter is likely directing the Swagger UI to display the default PetStore example instead of my custom project's Swagger documentation.
Could you please advise me on how to update the code to resolve this issue? I would greatly appreciate your assistance.
Thank you in advance for your time and consideration.
Sincerely,
The text was updated successfully, but these errors were encountered: