Skip to content

Rapidoc throws errors when an OpenAPI 3 doc contains empty server array property #1034

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

Closed
neptunecentury opened this issue Sep 26, 2024 · 0 comments

Comments

@neptunecentury
Copy link

Hello
I am using NSwag to directly generate an OAS 3 doc for an asp.net framework 4.8 Web API controller. When the spec is generated, it contains empty server: [] property as seen here:

image

This causes Rapidoc to throw errors when clicking on the operation in the nav pane
image

If I delete the empty servers:[] property, then Rapidoc works fine. But this is a manual process, and I can't use an api endpoint to provide the spec.

Can we have Rapidoc handle the empty array?
Thanks

@mrin9 mrin9 closed this as completed in 645928a Sep 27, 2024
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

No branches or pull requests

1 participant