marcosschroh / dataclasses-avroschema

Generate avro schemas from python dataclasses, Pydantic models and Faust Records. Code generation from avro schemas. Serialize/Deserialize python instances with avro schemas.
https://marcosschroh.github.io/dataclasses-avroschema/
MIT License
219 stars 67 forks source link

fix: serialiaze properly unions when types are similar. Closes #749 #751

Closed marcosschroh closed 1 month ago

github-actions[bot] commented 2 months ago

PR Preview Action v1.4.8 :---: :rocket: Deployed preview to https://marcosschroh.github.io/dataclasses-avroschema/pr-preview/pr-751/ on branch gh-pages at 2024-09-27 14:23 UTC

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 98.05825% with 2 lines in your changes missing coverage. Please review.

Project coverage is 99.39%. Comparing base (31e3724) to head (5a0a2b9). Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
dataclasses_avroschema/serialization.py 93.33% 1 Missing :warning:
dataclasses_avroschema/utils.py 96.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #751 +/- ## ========================================== - Coverage 99.49% 99.39% -0.10% ========================================== Files 34 34 Lines 1971 1987 +16 ========================================== + Hits 1961 1975 +14 - Misses 10 12 +2 ```

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