You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of recent releases, the HTML2 generator produces HTML with broken JavaScript. In particular, it produces assignment lines with the right hand side object missing. I.e.,
schemaWrapper = ;
This causes the "Scema" area of the documentation to not populate and causes the HTML export to be not useful.
Swagger-codegen version
This is impacted by the latest version of the code. It has been impacting the code for at least several months -- it impacted our HomeBrew download in September and now impacts the tools exposed live on swatterhub.com
See: attached api.yaml (that produced properly working API docs in the past) and the api.html of a current export that shows the JavaScript errors.
Command line used for generation
From the command line on Mac/HomeBrew you can reproduce:
Same issue even if I reduce the YAML to only 1 function and 36 lines of YAML. See the YAML and the output code that has the broken response responses schemaWrapper. Note that the YAML validates just fine.
ekangas1
changed the title
The HTML2 generator produces broken JavaScript as of recent releases
The HTML2 generator produces broken/missing Response Schema schemaWrapper JavaScript variable value.
Nov 14, 2022
Description
As of recent releases, the HTML2 generator produces HTML with broken JavaScript. In particular, it produces assignment lines with the right hand side object missing. I.e.,
schemaWrapper = ;
This causes the "Scema" area of the documentation to not populate and causes the HTML export to be not useful.
Swagger-codegen version
This is impacted by the latest version of the code. It has been impacting the code for at least several months -- it impacted our HomeBrew download in September and now impacts the tools exposed live on swatterhub.com
See: attached api.yaml (that produced properly working API docs in the past) and the api.html of a current export that shows the JavaScript errors.
Command line used for generation
From the command line on Mac/HomeBrew you can reproduce:
You can also reproduce through the UI on swaggerhub.com.
Example-Files.zip
The text was updated successfully, but these errors were encountered: