Opened 6 years ago
Closed 5 years ago
#52317 closed enhancement (fixed)
REST API: Improve JSON Schema validation error codes
| Reported by: | TimothyBlynJacobs | Owned by: | TimothyBlynJacobs |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.7 |
| Component: | REST API | Version: | 4.7 |
| Severity: | normal | Keywords: | has-patch commit dev-reviewed |
| Cc: | Focuses: |
Description
rest_validate_value_from_schema currently has a mix of error codes in use. Some are nice and specific like rest_invalid_date but most are the unhelpful rest_invalid_param. Right now, this doesn't have much of an impact since the individual errors from rest_validate_value_from_schema are not returned to clients. But in preparation for #46191, we should take this opportunity to make them more useful, as after it may be more of a BC break.
Change History (7)
This ticket was mentioned in PR #875 on WordPress/wordpress-develop by TimothyBJacobs.
6 years ago
#1
- Keywords has-patch added
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Trac ticket: https://core.trac.wordpress.org/ticket/52317