Skip to content

fix: handle anonymous structs #20

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

Merged
merged 1 commit into from
Jul 6, 2025
Merged

fix: handle anonymous structs #20

merged 1 commit into from
Jul 6, 2025

Conversation

samber
Copy link
Owner

@samber samber commented Jul 6, 2025

Previously, the getType function would not correctly handle anonymous structs, causing tests to fail. This commit introduces a new case for reflect.Struct in the getType function, which correctly handles anonymous structs, including those with embedded fields.

The test case for this was uncommented and is now passing.

Previously, the getType function would not correctly handle anonymous
structs, causing tests to fail. This commit introduces a new case for
reflect.Struct in the getType function, which correctly handles
anonymous structs, including those with embedded fields.

The test case for this was uncommented and is now passing.
Copy link

codecov bot commented Jul 6, 2025

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@samber samber merged commit 24c10ad into main Jul 6, 2025
13 of 15 checks passed
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

Successfully merging this pull request may close these issues.

1 participant