Go-Jet by defaults doesn't provide json annotations for marshaling.
type Message struct {
ID *int32 `sql:"primary_key"`
Content *string
}
Is it possible to auto generate json marshaling annotations by looking at the table names in the schema for example?
Is it possible to toggle between camelCase and TitleCase? Right now it uses TitleCase but camelCase is recommended for JSON (https://jsonapi.org/recommendations/)
Also, the table scheme calls the field id yet somehow Jet turns it into ID instead of Id.
Go-Jet by defaults doesn't provide json annotations for marshaling.
Is it possible to auto generate json marshaling annotations by looking at the table names in the schema for example? Is it possible to toggle between
camelCase
andTitleCase
? Right now it usesTitleCase
butcamelCase
is recommended for JSON (https://jsonapi.org/recommendations/)Also, the table scheme calls the field
id
yet somehow Jet turns it intoID
instead ofId
.