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

WordPress Trac noreply at wordpress.org
Sat Aug 15 13:25:58 UTC 2020


#51021: Permit uniqueItems keyword in endpoint args
-------------------------------+-------------------------------
 Reporter:  TimothyBlynJacobs  |      Owner:  TimothyBlynJacobs
     Type:  defect (bug)       |     Status:  assigned
 Priority:  normal             |  Milestone:  5.5.1
Component:  REST API           |    Version:  5.5
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-------------------------------
 Support for the `uniqueItems` keyword was added in [48357]. However, I
 neglected to add the keyword to the list of valid properties in
 `WP_REST_Server::get_endpoint_args_for_item_schema`. This means the
 keyword won't be automatically added to the args definition if used in a
 schema.

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


More information about the wp-trac mailing list