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
We currently do not check the object of an API call for allowed or required properties before processing it. If the check fails there are two possible error states this could lead to:
Example (structure wrong): PUT /ghost/api/v0.1/posts/1
{
id: 1,
post: [{...}]
}
ValidationError (422): JSON structure is valid but a property is missing/not allowed. This will probably require to define a list of required and optional properties. Maybe it is a good idea to derive/include this list from/in schema.js and use it with our validation?
Example (my-markdown not allowed): PUT /ghost/api/v0.1/posts/1
{
posts:[{
id: 1,
my-markdown: '...',
...
}]
}
The text was updated successfully, but these errors were encountered:
ErisDS
added
later
[triage] Things we intend to work but are not immediate priority
apps
and removed
apps
later
[triage] Things we intend to work but are not immediate priority
labels
Jun 26, 2015
Refs #2187 & #2697
We currently do not check the object of an API call for allowed or required properties before processing it. If the check fails there are two possible error states this could lead to:
Example (structure wrong):
PUT /ghost/api/v0.1/posts/1
schema.js
and use it with our validation?Example (my-markdown not allowed):
PUT /ghost/api/v0.1/posts/1
The text was updated successfully, but these errors were encountered: