Kinto / Kinto/kinto

kinto.core why isn't ID in the Colander Schema?

Open
#1,091 6 comments 0 reactions 0 assignees View on GitHub
question stale
Dominant language
Python
Stars
4.4k
Forks
437
Avg merge
1d 2h
Merged PRs (30d)
15

Description

In our case we are using kinto.core on a resource where we want to enforce the ID.
[This](https://github.com/Kinto/kinto/blob/master/kinto/core/resource/__init__.py#L322-L323) prevent us to do that in the deserialize of the colander method.

Contributor guide

Open the contributing guide

Research direction

Read kinto/core/resource/__init__.py around lines 322-323 and inspect the Colander deserialization path. Determine why the ID is excluded from schema validation and whether that prevents resources from enforcing it; done means the intended validation behavior is defined and verified with an appropriate test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.