[wp-trac] [WordPress Trac] #34551: Change API error response to focus on singular errors

WordPress Trac noreply at wordpress.org
Mon Nov 2 03:51:49 UTC 2015


#34551: Change API error response to focus on singular errors
--------------------------+--------------------
 Reporter:  rmccue        |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  4.4
Component:  REST API      |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |     Focuses:
--------------------------+--------------------

Comment (by dd32):

 Since this is a BC break, if we're going to do it, it has to happen now
 obviously.

 I'd almost expect it to return the "primary" error object, with any
 additional errors available in an extra sub-key

 An example use-case for where multiple errors are returned would
 significantly help in deciding if we do need to retain this though.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34551#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list