-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[BUG] html2 generator JS error: "Cannot read property '$ref' of undefined" #2427
Comments
👍 Thanks for opening this issue! The team will review the labels and make any necessary changes. |
Were you able to find a work-around for this issue? I am running into this as well and I don't see an easy fix for this. |
I ran into the same issue. I didn't fix it generator-side, but changing every instance of the line: In the generated document, the schemaWrapper variable was formatted like this:
So it makes sense schemaWrapper.schema is undefined Edit: I forgot, I also had to change each instance of:
|
We have the same problem, making it unusable for us. Is there a previous version we could fall back to which doesn't have this issue? |
I switched to a different generator tool chain: https://github.com/tobilg/api2html |
Nice thanks! We've opted for https://sourcey.com/spectacle for the time being, will have a look at that one too. |
Description
The HTML output by the
html2
generator gives this error when run in Chrome:openapi-generator version
4.0.0-SNAPSHOT
OpenAPI declaration file content or url
The below yaml is valid as per:
Command line used for generation
Steps to reproduce
The text was updated successfully, but these errors were encountered: