You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 28, 2019. It is now read-only.
Since the PATCH request payload does not always match schema, Cliquet does define any schema for the PATCH endpoint.
Instead, it validates the result of merge (old record + changes) against the resource mapping (which BTW duplicates some Cornice code to add colander errors to the response).
But the resource mapping is not the same as the schema that was used by the ViewSet. This should be fixed.
The text was updated successfully, but these errors were encountered:
With PUT, Cornice is in charge of validating against view schema. Works fine:
With PATCH, it does not raise:
Explanation:
Since the PATCH request payload does not always match schema, Cliquet does define any schema for the PATCH endpoint.
Instead, it validates the result of merge (old record + changes) against the resource mapping (which BTW duplicates some Cornice code to add colander errors to the response).
But the resource mapping is not the same as the schema that was used by the
ViewSet
. This should be fixed.The text was updated successfully, but these errors were encountered: