[wp-trac] [WordPress Trac] #52317: REST API: Improve JSON Schema validation error codes
WordPress Trac
noreply at wordpress.org
Sun Jan 24 03:57:53 UTC 2021
#52317: REST API: Improve JSON Schema validation error codes
-------------------------------+--------------------------------
Reporter: TimothyBlynJacobs | Owner: TimothyBlynJacobs
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.7
Component: REST API | Version: 4.7
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
-------------------------------+--------------------------------
Changes (by TimothyBlynJacobs):
* owner: (none) => TimothyBlynJacobs
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"50007" 50007]:
{{{
#!CommitTicketReference repository="" revision="50007"
REST API: Add more specific error codes for schema validation.
Previously, the majority of JSON Schema validation errors returned a
generic `rest_invalid_param` error code. In preparation for #46191, where
the underlying validation error code will be exposed, this commit adds
specific error codes for each failure scenario.
Fixes #52317.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52317#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list