Open ross96D opened 3 months ago
Attention: Patch coverage is 96.34703%
with 8 lines
in your changes are missing coverage. Please review.
Project coverage is 92.60%. Comparing base (
e089398
) to head (c2e4242
).
Files | Patch % | Lines |
---|---|---|
huma.go | 96.34% | 6 Missing and 2 partials :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@ross96D thanks for the PR. I was looking into this one last night and wanted to give a brief update. I think you correctly identified a problem with custom param validation. I'm not sure a second method to convert from []byte
is the best approach, so I'm thinking about what would be best for this feature. I thought about a custom Validate
method but it wouldn't be used for body validation as that happens before the inputs are parsed into the struct values. 🤔 ... We could just return a value via some method so it can be used for validation. I'll try to propose something for this soon.
Could we add docs for this?
fix #433