Open schoettl opened 4 months ago
Hey @schoettl You are right, this is indeed the same problem as in the issue you referenced. There is currently no option to completely turn off the uppercasing of the first letter, so fixing the compilation itself is probably not possible without either:
operation-to-generate
flag (can be applied multiple times to generate all the operations necessary).So atm there is not really a good way to handle this I am afraid 😕
Thanks @joel-bach for the pointer to --operation-to-generate
, that's a good idea.
Hi there, thanks for this great code gen! I'd just like to hear some opinions how to best fix this issue:
In the Xentral ERP OpenAPI spec they use this inline declaration of a "Loose boolean type".
which translates to
where we have duplicate names in the type constructors.
I think it boils down to issue #85.
But in this case the enum is defined inline, not DRY in a scheme. So I'd need to patch dozens of generated files.
I didn't find an command line option to fix it.
As the request body is made by me and I will use
Bool
instead of some strings it should be save to delete the enum from theoneOf
section. Maybe this can be done withjq
. Or I just usesed
but that might remove some occasions where it shouldn't.Are there better ideas?