[wp-trac] [WordPress Trac] #38586: REST API: Allow arrays to be sent as CSVs

WordPress Trac noreply at wordpress.org
Mon Oct 31 06:28:22 UTC 2016


#38586: REST API: Allow arrays to be sent as CSVs
----------------------------+-----------------------
 Reporter:  pento           |       Owner:  pento
     Type:  task (blessed)  |      Status:  reopened
 Priority:  normal          |   Milestone:  4.7
Component:  REST API        |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+-----------------------

Comment (by pento):

 I'm cool with whatever option. Everywhere endpoint parameters have the
 type `array`, we also want to allow CSV.

 Actually, I'd be fine with just documenting that, and leaving it,
 particularly as changing the type in the endpoint docs will be confusing.
 Apps that care about JSON Schema can send actual arrays, apps that don't
 can send either.

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


More information about the wp-trac mailing list