Skip to content

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

Open
@arjendevos

Description

@arjendevos

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions