#1411·sqlboiler

JSON camelCase config uses go like naming for words like ID

Author: arjendevosCreated Aug 21, 2024Updated Feb 28, 2026
Labelshelp wantedfeature request

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?