smard-api icon indicating copy to clipboard operation
smard-api copied to clipboard

Fix code generation

Open lukaspanni opened this issue 2 years ago • 3 comments

Currently the code generation fails, probably because of one of the possible region parameters ('50HERTZ') starting with a number. grafik

I don't know how to fix this without changes to the code generator or leaving out the 50HERTZ parameter in the openapi definition. There is just a mismatch between strings that are allowed as API parameters and strings allowed as identifies (class/function ... names) in python

lukaspanni avatar Oct 07 '22 13:10 lukaspanni

Thats a tough one. Maybe the new released generator handles this for us. Would be worth to give it a shot.

wirthual avatar Oct 07 '22 15:10 wirthual

I'll try to test it next week

lukaspanni avatar Oct 08 '22 21:10 lukaspanni

Sorry I hadn't had any chance to look into that and probably won't be able to in the next time

lukaspanni avatar Oct 26 '22 18:10 lukaspanni