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

Panic when a struct (Without any conform struct tag) has a []uint #40

Open
agity7 opened this issue May 27, 2024 · 1 comment
Open

Panic when a struct (Without any conform struct tag) has a []uint #40

agity7 opened this issue May 27, 2024 · 1 comment

Comments

@agity7
Copy link

agity7 commented May 27, 2024

Hello, I keep receiving a panic when a struct has a []uint.

Screenshot 2024-05-27 at 4 39 14 PM

This causes a panic.

Screenshot 2024-05-27 at 4 40 25 PM

Reason why a struct without any conform struct tag is passed to conform.Strings:
That is because I use a general decoder to decode incoming json payloads, and depending on the struct payload is decoded to, some might or might not have conform tag. But this should not cause the panic I encounter.

Thanks.

@leebenson
Copy link
Owner

Thank you and sorry for the delay. I'm happy to take PRs to fix this.

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

2 participants