Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON camelCase config uses go like naming for words like ID #1411

Open
arjendevos opened this issue Aug 21, 2024 · 1 comment
Open

JSON camelCase config uses go like naming for words like ID #1411

arjendevos opened this issue Aug 21, 2024 · 1 comment

Comments

@arjendevos
Copy link

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?

@stephenafamo
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants