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

fix: prevent panic on examples for pointer field types #148

Merged
merged 2 commits into from
Oct 22, 2023

Conversation

danielgtaylor
Copy link
Owner

Small fix to better support inputs/outputs with fields that are pointers and provide an example for the generated schema.

Fixes #18.

@codecov
Copy link

codecov bot commented Oct 22, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Files Coverage Δ
schema.go 95.31% <92.85%> (+0.89%) ⬆️

📢 Thoughts on this report? Let us know!.

@danielgtaylor danielgtaylor merged commit e25de1a into main Oct 22, 2023
5 checks passed
@danielgtaylor danielgtaylor deleted the pointer-examples branch October 22, 2023 05:22
danielgtaylor added a commit that referenced this pull request Oct 23, 2023
fix: backport Huma v2 example pointer fix from #148
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.

Panic if adding example tag to body field which is a pointer
1 participant