Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve issues with raw None annotation #433

Merged
merged 5 commits into from
Sep 19, 2023

Conversation

Prometheus3375
Copy link
Contributor

@Prometheus3375 Prometheus3375 commented Sep 18, 2023

Resolves #424.

While working on the fix, I noticed some typos and minor issues:

  • readme.md - To run tests locally, one should run poetry install --all-extras. Otherwise, tests will fail because pydantic is not installed.
  • Common typo INMUTABLE. Present in definitions in dataclasses_avroschema/fields/mapper.py and tests/fields/test_primitive_types.py.
  • tests/fields/consts.py - tuple PRIMITIVE_TYPES_AND_DEFAULTS has member with Annotated[bool, "boolen"]. a is missing.

Should/may I also fix these problems?

@Prometheus3375 Prometheus3375 changed the title Add support for null fields and resolve issues with not converted None annotation Resolve issues with raw None annotation Sep 19, 2023
@codecov
Copy link

codecov bot commented Sep 19, 2023

Codecov Report

Merging #433 (ee01f8b) into master (a9f0138) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #433   +/-   ##
=======================================
  Coverage   99.28%   99.29%           
=======================================
  Files          20       20           
  Lines        1548     1552    +4     
  Branches      288      289    +1     
=======================================
+ Hits         1537     1541    +4     
  Misses          3        3           
  Partials        8        8           
Files Changed Coverage Δ
dataclasses_avroschema/fields/fields.py 99.04% <100.00%> (+<0.01%) ⬆️

@marcosschroh marcosschroh merged commit 7ae60d0 into marcosschroh:master Sep 19, 2023
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fields of type None raise error on schema generation or have duplicated type in schema
2 participants