[wp-trac] [WordPress Trac] #50300: Multi type on args properties returning invalid error message when not validated

WordPress Trac noreply at wordpress.org
Tue Jun 2 14:33:31 UTC 2020


#50300: Multi type on args properties returning invalid error message when not
validated
-------------------------------------------------+-------------------------
 Reporter:  pentatonicfunk                       |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  5.5
Component:  REST API                             |     Version:  5.3
 Severity:  normal                               |  Resolution:
 Keywords:  json-schema needs-patch needs-unit-  |     Focuses:  rest-api
  tests                                          |
-------------------------------------------------+-------------------------
Changes (by TimothyBlynJacobs):

 * keywords:   => json-schema needs-patch needs-unit-tests
 * version:  5.4.1 => 5.3
 * milestone:  Awaiting Review => 5.5


Comment:

 Thanks for the ticket @pentatonicfunk!

 Yeah the error message when using multi types isn't very helpful. We
 should improve it by separately trying to find the best type for the input
 based on the possible types.

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


More information about the wp-trac mailing list