danielgtaylor / huma

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

feat: basic schema discriminator support #419

Closed danielgtaylor closed 5 months ago

danielgtaylor commented 5 months ago

Add basic support for the OpenAPI 3.1 discriminator object in schemas. https://spec.openapis.org/oas/v3.1.0#discriminator-object

Fixes #384

codecov[bot] commented 5 months ago

Codecov Report

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

Project coverage is 92.72%. Comparing base (da22a6c) to head (33506ff).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #419 +/- ## ========================================== + Coverage 92.71% 92.72% +0.01% ========================================== Files 21 21 Lines 3540 3546 +6 ========================================== + Hits 3282 3288 +6 Misses 220 220 Partials 38 38 ```

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