Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default PetStore Sample #292

Open
StephSanchez opened this issue May 1, 2024 · 1 comment · May be fixed by #293
Open

Default PetStore Sample #292

StephSanchez opened this issue May 1, 2024 · 1 comment · May be fixed by #293

Comments

@StephSanchez
Copy link

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,

@fastjames
Copy link
Contributor

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 .

@fastjames fastjames linked a pull request May 24, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants