sqlboiler icon indicating copy to clipboard operation
sqlboiler copied to clipboard

JSON camelCase config uses go like naming for words like ID

Open arjendevos opened this issue 1 year ago • 1 comments

Generated:

AccountID        string    `boil:"account_id" json:"accountID" toml:"account_id" yaml:"account_id"`

But it should be:

AccountID        string    `boil:"account_id" json:"accountId" toml:"account_id" yaml:"account_id"`

Config:

output = "models/dm"
pkgname = "dm"
wipe     = true
no-tests = true
add-enum-types = true
add-soft-deletes = true

[struct-tag-cases]
json = "camel"

Is this a bug or is it configurable?

arjendevos avatar Aug 21 '24 12:08 arjendevos

Unfortunately, this is not configurable. Open to suggestions/PRs

stephenafamo avatar Oct 23 '24 09:10 stephenafamo