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

Golang case insentivity #3

Open
acouvreur opened this issue Apr 10, 2023 · 0 comments
Open

Golang case insentivity #3

acouvreur opened this issue Apr 10, 2023 · 0 comments

Comments

@acouvreur
Copy link

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.

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

No branches or pull requests

1 participant