plone / guillotina

Python AsyncIO data API to manage billions of resources
https://guillotina.readthedocs.io/en/latest/
Other
187 stars 51 forks source link

Fix bug trying to deserialize jsonschema validation error #997

Closed lferran closed 3 years ago

lferran commented 3 years ago

This is happening for fields with schema.JSONField type, if a type that doesn't match the schema is sent.

codecov-io commented 3 years ago

Codecov Report

Merging #997 into master will increase coverage by 0.1%. The diff coverage is 100.0%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master    #997     +/-   ##
========================================
+ Coverage    94.6%   94.7%   +0.1%     
========================================
  Files         316     316             
  Lines       28091   28101     +10     
========================================
+ Hits        26571   26586     +15     
+ Misses       1520    1515      -5     
Impacted Files Coverage Δ
guillotina/json/deserialize_content.py 93.3% <ø> (ø)
guillotina/test_package.py 97.3% <100.0%> (+0.5%) :arrow_up:
guillotina/tests/test_errors.py 100.0% <100.0%> (ø)
guillotina/db/storages/pg.py 89.3% <0.0%> (+0.2%) :arrow_up:
guillotina/json/deserialize_value.py 91.3% <0.0%> (+0.7%) :arrow_up:
guillotina/catalog/catalog.py 85.4% <0.0%> (+1.6%) :arrow_up: