godatadriven / pydantic-avro

This library can convert a pydantic class to a avro schema or generate python code from a avro schema.
https://github.com/godatadriven/pydantic-avro
MIT License
60 stars 30 forks source link

Add multiple union support #58

Closed ffinfo closed 1 year ago

ffinfo commented 1 year ago

extension of https://github.com/godatadriven/pydantic-avro/pull/54

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.94 :tada:

Comparison is base (fe41eb7) 90.10% compared to head (349ca39) 91.05%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #58 +/- ## ========================================== + Coverage 90.10% 91.05% +0.94% ========================================== Files 2 2 Lines 182 190 +8 ========================================== + Hits 164 173 +9 + Misses 18 17 -1 ``` | [Impacted Files](https://codecov.io/gh/godatadriven/pydantic-avro/pull/58?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=godatadriven) | Coverage Δ | | |---|---|---| | [src/pydantic\_avro/avro\_to\_pydantic.py](https://codecov.io/gh/godatadriven/pydantic-avro/pull/58?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=godatadriven#diff-c3JjL3B5ZGFudGljX2F2cm8vYXZyb190b19weWRhbnRpYy5weQ==) | `84.21% <100.00%> (+1.23%)` | :arrow_up: | | [src/pydantic\_avro/base.py](https://codecov.io/gh/godatadriven/pydantic-avro/pull/58?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=godatadriven#diff-c3JjL3B5ZGFudGljX2F2cm8vYmFzZS5weQ==) | `97.89% <100.00%> (+0.16%)` | :arrow_up: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=godatadriven). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=godatadriven)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.