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
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
When rendering html2 docs, an array of Objects as a body parameter is displayed as "undefined".
The browser console returns the error: SyntaxError: Error resolving $ref pointer "http://localhost:63342/generation/test/index.html?_ijt=n7smjkttckivilrk3ohtc6e3vc&_ij_reload=RELOAD_ON_SAVE#/components/schemas/Event". (at index.html?_ijt=n7smjkttckivilrk3ohtc6e3vc&_ij_reload=RELOAD_ON_SAVE:2779:318) Token "components" does not exist.
The objects within the array are not being dereferenced, so the reference is returned to the view
The following can be added to modules/openapi-generator/src/main/resources/htmlDocs2/paramB.mustache for a point solution, although the dereference method should process this before it is returned.
Bug Report Checklist
Description
When rendering html2 docs, an array of Objects as a body parameter is displayed as "undefined".
The browser console returns the error:
SyntaxError: Error resolving $ref pointer "http://localhost:63342/generation/test/index.html?_ijt=n7smjkttckivilrk3ohtc6e3vc&_ij_reload=RELOAD_ON_SAVE#/components/schemas/Event". (at index.html?_ijt=n7smjkttckivilrk3ohtc6e3vc&_ij_reload=RELOAD_ON_SAVE:2779:318) Token "components" does not exist.
openapi-generator version
Versions Tested:
6.3.0-Snapshot
6.2.0
5.4.0
OpenAPI declaration file content or url
https://gist.githubusercontent.com/egorman-verint/060902daebbe7262d6d30fd3dd492c41/raw/0d8c90ef846994c06ec2629a12d27fb28503e4e7/html2ArrayRender.yaml
Generation Details
docker run --rm -v c:\dev:/local openapitools/openapi-generator-cli:latest generate -i /local/api/html2ArrayRender.yaml -g html2 -o /local/generation/test
Steps to reproduce
Expected
Under Parameters, Body Parameters, observe the description of event parameter is "[ Event ]" with link to the event object
Related issues/PRs
#13312
Suggest a fix
The objects within the array are not being dereferenced, so the reference is returned to the view
The following can be added to modules/openapi-generator/src/main/resources/htmlDocs2/paramB.mustache for a point solution, although the dereference method should process this before it is returned.
The text was updated successfully, but these errors were encountered: