[wp-trac] [WordPress Trac] #39494: Make it possible for taxonomy query to include children in REST API

WordPress Trac noreply at wordpress.org
Mon Mar 26 09:05:10 UTC 2018


#39494: Make it possible for taxonomy query to include children in REST API
-----------------------------+-----------------------------
 Reporter:  jason_the_adams  |       Owner:
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  Future Release
Component:  REST API         |     Version:  4.7
 Severity:  normal           |  Resolution:
 Keywords:  needs-testing    |     Focuses:  rest-api
-----------------------------+-----------------------------

Comment (by birgire):

 Replying to [comment:24 jason_the_adams]:
 > I chatted with @timothyblynjacobs and he pointed out that both the title
 (1) and content (2) accept either a string or object and disable
 sanitization and validation to do so. It would be great if we could use
 `oneOf` per schema convention, but that isn't supported, yet. Hopefully
 another ticket will come down the road to improve that.
 >
 I stumbled up on a great article by him here on the matter:

 https://timothybjacobs.com/2017/05/17/json-schema-and-the-wp-rest-api/

 This seems to be the way forward, to support the schema keywords like
 {{{oneOf}}} and {{{anyOf}}}

 I think we should create a new ticket for this ;-)

 > In the next couple days I'll take your first patch and give that a go!
 I'm sure the new keywords would fix those issues ;-)

 > Footnotes:
 Thanks for the links, interesting workarounds.

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


More information about the wp-trac mailing list