Skip to content

Commit

Permalink
Bump colander from 1.8.3 to 2.0 (#3112)
Browse files Browse the repository at this point in the history
* Bump colander from 1.8.3 to 2.0

Bumps [colander](https://github.com/Pylons/colander) from 1.8.3 to 2.0.
- [Release notes](https://github.com/Pylons/colander/releases)
- [Changelog](https://github.com/Pylons/colander/blob/main/CHANGES.rst)
- [Commits](Pylons/colander@1.8.3...2.0)

---
updated-dependencies:
- dependency-name: colander
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Remove dead code after Pylons/colander#264

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Mathieu Leplatre <mathieu@mozilla.com>
  • Loading branch information
dependabot[bot] and leplatrem authored Dec 18, 2023
1 parent 89e2518 commit 5b0b1a2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions kinto/core/resource/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,6 @@ def deserialize(self, cstruct=colander.null):
values = {}

schema_values = super().deserialize(cstruct)
if schema_values is colander.drop:
return schema_values

# Deserialize querystring field filters (see docstring e.g)
for k, v in cstruct.items():
Expand Down
4 changes: 0 additions & 4 deletions kinto/schema_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ def schema_type(self, **kw):
def deserialize(self, cstruct=colander.null):
# Start by deserializing a simple mapping.
validated = super().deserialize(cstruct)

# In case it is optional in parent schema.
if not validated or validated in (colander.null, colander.drop):
return validated
try:
check_schema(validated)
except ValidationError as e:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bcrypt==4.1.1
colander==1.8.3
colander==2.0
cornice==6.0.1
cornice-swagger==1.0.1
dockerflow==2022.8.0
Expand Down

0 comments on commit 5b0b1a2

Please sign in to comment.