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

No API definition provided for serveDocs() #8

Closed
itulau opened this issue Oct 10, 2023 · 0 comments · Fixed by #9
Closed

No API definition provided for serveDocs() #8

itulau opened this issue Oct 10, 2023 · 0 comments · Fixed by #9

Comments

@itulau
Copy link
Contributor

itulau commented Oct 10, 2023

I found an issue with serveDocs():

According to the Swagger's doc It seems that SwaggerUIBundle expects a JS object and not a JSON which is causing this issue of not rendering the specification.

To solve it I found that in:

const html = template.replace('"##docs##"', strDocs).replace('"##title##"', opts.title)

by swapping the ' for " in the docs replace did the trick. So '"##docs##"' should be "'##docs##'", and that solved the issue on my side.

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