[wp-trac] [WordPress Trac] #38583: Support for objects in schema validation and sanitization

WordPress Trac noreply at wordpress.org
Wed Oct 4 07:50:57 UTC 2017


#38583: Support for objects in schema validation and sanitization
-------------------------------------------------+-------------------------
 Reporter:  rachelbaker                          |       Owner:  rmccue
     Type:  enhancement                          |      Status:  reviewing
 Priority:  high                                 |   Milestone:  4.9
Component:  REST API                             |     Version:  4.7
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests dev-        |     Focuses:
  feedback                                       |
-------------------------------------------------+-------------------------

Comment (by joehoyle):

 Added new patch working off 38583.1.diff:

 - Removed support for additionalProperties
 - Fixed sanitize -> validate in comments
 - Will now remove / ignore any properties that are not included in the
 registered properties. We follow this pattern mostly around the API where
 over-providing data is just silently ignored.

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


More information about the wp-trac mailing list