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
63 stars 30 forks source link

Add `by_alias` parameter to `avro_schema` #31

Closed nikitabarskov closed 2 years ago

nikitabarskov commented 2 years ago

So we can get a schema based on the fields of pydantic class as based on the aliases of fields.

codecov-commenter commented 2 years ago

Codecov Report

Merging #31 (0b0cacb) into main (5388e41) will not change coverage. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main      #31   +/-   ##
=======================================
  Coverage   89.08%   89.08%           
=======================================
  Files           2        2           
  Lines         174      174           
=======================================
  Hits          155      155           
  Misses         19       19           
Impacted Files Coverage Δ
src/pydantic_avro/base.py 96.34% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 5388e41...0b0cacb. Read the comment docs.

ffinfo commented 2 years ago

will make a new release for this

ffinfo commented 2 years ago

version 0.3.2 is released