Skip to content

Golang case insentivity #3

Open
@acouvreur

Description

@acouvreur

According to https://pkg.go.dev/encoding/json#Unmarshal

Unmarshal matches incoming object keys to the keys used by Marshal (either the struct field name or its tag), preferring an exact match but also accepting a case-insensitive match

To have this library as an drop-in replacement, maybe this behavior should be added.

In the meantime, as the code is generated, I simply change the mapping myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions