OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
[N] [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
When the openAPI spec contains array types, the generator doesn't create proper Cwiki.
Example (incorrect) output:
...
|| Response Type | array[ErrorResult] |
|| Response Model | [array[ErrorResult] Model|#array[ErrorResult]ModelAnchor|Jump to model] |
It should be more like:
...
|| Response Type | array of ErrorResult |
|| Response Model | [ErrorResult Model|#ErrorResultModelAnchor|Jump to model] |
The mustache file looks correct, but it's using a field ({{{dataType}}} that puts in the square brackets, confusing Confluence. Simple escaping doesn't seem to work.
Bug Report Checklist
Description
When the openAPI spec contains array types, the generator doesn't create proper Cwiki.
Example (incorrect) output: ... || Response Type | array[ErrorResult] | || Response Model | [array[ErrorResult] Model|#array[ErrorResult]ModelAnchor|Jump to model] |
It should be more like: ... || Response Type | array of ErrorResult | || Response Model | [ErrorResult Model|#ErrorResultModelAnchor|Jump to model] |
openapi-generator version
v4.3.1
OpenAPI declaration file content or url
Generation Details
openapi-generator generate -i example.json -g cwiki
Related issues/PRs
Didn't see any
Suggest a fix
The mustache file looks correct, but it's using a field ({{{dataType}}} that puts in the square brackets, confusing Confluence. Simple escaping doesn't seem to work.