Open fetis opened 1 year ago
any status on this issue ?
Some status?
@jaydeep987 @mvarchdev I don't have any updates on this
@jaydeep987 @mvarchdev SOLUTION: instead of passing parameters in the command line, use a config file (as mentioned here), then it works flawlessly =)
TL;TR: 2024, October 31st and this still happens. When you use --additional-properties
it complains about every single param to be unexpected; when you use e.g. -packageName
or --packageName
it throws the same error. So, additional properties are indeed being ignored or purposefully not allowed for specific generators (I'm using PHP); which is a bit cumbersome because we have 4 different API Clients to build, every one has the same package name and namespaces, then we have to manually change each one.
Bug Report Checklist
Description
additionalProperties
for components from schema are completely ignored and missed in the outputopenapi-generator version
6.3.0
OpenAPI declaration file content or URL
In
#/components/schemas
Generation Details
The schema above with default options produces
Please note that strange
extends null
and missed additional propsThe expected output should be smth like this
Steps to reproduce
pizzaDto.ts
Related issues/PRs
The correct generation was introduced in this PR https://github.com/OpenAPITools/openapi-generator/issues/4698 but it's broken now.
Suggest a fix
Check the previous implementation of borrow it from
typescript-angular
(it does it correctly)