lorenzodonini / ocpp-go

Open Charge Point Protocol implementation in Go
MIT License
277 stars 126 forks source link

Code Generation #243

Open andreichalapco opened 1 year ago

andreichalapco commented 1 year ago

Does the package have any from .json schema to .go code generation functionality?

lorenzodonini commented 1 year ago

It doesn't. The main reason being that validation tags play a huge role in every defined type and I don't know of any library that generates those tags for you when doing .json -> .go generation.

If such a tool exists I'm happy to use it for future versions as it would reduce the implementation time to basically just writing tests.