[wp-trac] [WordPress Trac] #51021: Permit uniqueItems keyword in endpoint args

WordPress Trac noreply at wordpress.org
Sat Aug 15 16:10:12 UTC 2020


#51021: Permit uniqueItems keyword in endpoint args
--------------------------------------+--------------------------------
 Reporter:  TimothyBlynJacobs         |       Owner:  TimothyBlynJacobs
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  5.5.1
Component:  REST API                  |     Version:  5.5
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+--------------------------------
Changes (by TimothyBlynJacobs):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"48796" 48796]:
 {{{
 #!CommitTicketReference repository="" revision="48796"
 REST API: Add uniqueItems as a permitted endpoint argument JSON Schema
 keyword.

 Support for the `uniqueItems` keyword was added in [48357], but wasn't
 included in the list of permitted keywords for
 `WP_REST_Controller::get_endpoint_args_for_item_schema()`. This prevented
 the keyword from being automatically supported if specified in a
 controller's item schema.

 Fixes #51021.
 }}}

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


More information about the wp-trac mailing list