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

WordPress Trac noreply at wordpress.org
Sun Jun 7 23:26:26 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 has-patch has-unit-tests  |     Focuses:  rest-api
--------------------------------------------------+-----------------------

Comment (by TimothyBlynJacobs):

 I've done a first pass at what this could look like. Essentially we match
 based solely on the type instead of validating each schema as a different
 type.

 This changes a couple of sanitization tests, but I think the new output is
 more desirable.

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


More information about the wp-trac mailing list