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

Failed to load API definition when base is set #243

Open
hambergerpls opened this issue Mar 8, 2025 · 0 comments · May be fixed by #244
Open

Failed to load API definition when base is set #243

hambergerpls opened this issue Mar 8, 2025 · 0 comments · May be fixed by #244

Comments

@hambergerpls
Copy link

Image

Image

It seems that when base is set, swagger ui was unable to load openapi.json because base is prepended to openapi_url in getSwaggerUI function but not on the openapi.json route itself

https://github.com/cloudflare/chanfana/blob/main/src/openapi.ts#L33

https://github.com/cloudflare/chanfana/blob/main/src/openapi.ts#L53-L70

Related to #59

@hambergerpls hambergerpls linked a pull request Mar 8, 2025 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.

1 participant