[wp-trac] [WordPress Trac] #49960: REST API: Support sanitize callbacks for nested properties

WordPress Trac noreply at wordpress.org
Sun Oct 25 03:45:35 UTC 2020


#49960: REST API: Support sanitize callbacks for nested properties
-------------------------------------------------+-------------------------
 Reporter:  ocean90                              |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  REST API                             |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  needs-patch needs-unit-tests         |     Focuses:
  reporter-feedback                              |
-------------------------------------------------+-------------------------
Changes (by TimothyBlynJacobs):

 * keywords:  needs-patch needs-unit-tests => needs-patch needs-unit-tests
     reporter-feedback


Comment:

 @ocean90 Could you share some examples of what kind of validation you
 would want to do in these instances?

 I've been thinking that this might be better served by an API to register
 a JSON Schema `format`.

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


More information about the wp-trac mailing list