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
Patching a document to change its type within API console we realized that values are not checked.
Supported DocTypes are "", "tutorial", "template" according to the code.
Describe the current behavior
Patching a document to change its type within API console we realized that values are not checked.
Supported DocTypes are
""
,"tutorial"
,"template"
according to the code.(
grist-core/app/common/UserAPI.ts
Line 131 in fb85f92
(
grist-core/app/common/UserAPI.ts
Line 154 in fb85f92
However patching with type
"nonsense"
returns a 200 with anull
response body.Steps to reproduce
Describe the expected behavior
The API must return a 400
Bad request
or a 422Unprocessable Entity
when trying to patch with invalid data.May be we can validate data against a schema for keys expecting well defined values.
Where have you encountered this bug?
Instance information (when self-hosting only)
No response
The text was updated successfully, but these errors were encountered: