danielgtaylor / huma

Huma REST/HTTP API Framework for Golang with OpenAPI 3.1
https://huma.rocks/
MIT License
1.87k stars 138 forks source link

panic with more descriptive messages #431

Closed ssoroka closed 4 months ago

ssoroka commented 4 months ago

Ran into this problem where a dev tried to use *int for a response, and the panic wasn't clear about what to fix. This tries to point the dev in the right direction.

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 92.75%. Comparing base (e941efc) to head (4de821f).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #431 +/- ## ========================================== + Coverage 92.74% 92.75% +0.01% ========================================== Files 21 21 Lines 3556 3562 +6 ========================================== + Hits 3298 3304 +6 Misses 220 220 Partials 38 38 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.