go-jet / jet

Type safe SQL builder with code generation and automatic query result data mapping
Apache License 2.0
2.52k stars 118 forks source link

Support JSON tags #157

Closed jaupe closed 2 years ago

jaupe commented 2 years ago

Is your feature request related to a problem? Please describe. The JSON we send back needs to be lower-case. We don't want to add it to the generated model structs because if we re-generate, then we will lose the tags.

Describe the solution you'd like Ability to add JSON tags in a maintenance-free manner if we re-generate the schema

go-jet commented 2 years ago

Hi @jaupe. It is possible to add tags to model types using generator customization. Check the test sample.