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

MultipleOpenApiResource issue? #771

Closed
SledgeHammer01 opened this issue Jul 6, 2020 · 0 comments
Closed

MultipleOpenApiResource issue? #771

SledgeHammer01 opened this issue Jul 6, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@SledgeHammer01
Copy link

I'm using SpringDoc 1.4.3. I have multiple definitions, v1 and v2. v1 doc is at http://localhost:8080/v3/api-docs/v1 as expected. Doing negative testing, when we go to http://localhost:8080/v3/api-docs/v3 (doesn't exist), this results in a 500 error. Looking at MultipleOpenApiResource: openapiJson and openapiYaml methods call getOpenApiResourceOrThrow which throws a IllegalStateException if the path is not found. This should return a 404 to handle gracefully, no?

@bnasslahsen bnasslahsen added the bug Something isn't working label Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants