Open nmerigaud opened 2 years ago
It seems that it's better to leave [TypeScript] in the title, and add related tag, because for some languages it works. For other languages there are multiple tickets, and without tags it makes search for corresponding ticket much harder.
Additionally, I believe, they should be implemented "per generator" so it will make it harder to identify and work for some concrete features.
Other option is to create separate issue which will reference all related issues with different generators so it will be easier to work on specific feature and identify generators that do not support those specs.
upd: This may be linked to #10514
Bug Report Checklist
Description
https://github.com/OpenAPITools/openapi-generator/commit/6430aaf3b1b2a6bafc67d5342f9e3703ada1a671 introduced deeply nested imports. More specifically the method that recursively collects imports handles
allOf
andoneOf
composed schemas but seems to ignoreanyOf
schemas.Having the following Open API schemas, the generated model
AnyFooBar
does not include the requiredFoo
andBar
importsedit: Removed
TypeScript
from title as from what I can tell, looking at where the issue lies, this is likely affecting all languages.openapi-generator version
This is in
5.4.0
as well as latest of master as far as I can tell.OpenAPI declaration file content or url
Generation Details
Related issues/PRs
The following issue does look somewhat similar though language and models do differ.
Suggest a fix
Opened a pull request for candidate fix: #11879