[wp-trac] [WordPress Trac] #51025: Add support for the anyOf and oneOf JSON Schema keywords.

WordPress Trac noreply at wordpress.org
Tue Oct 20 17:46:45 UTC 2020


#51025: Add support for the anyOf and oneOf JSON Schema keywords.
--------------------------------------------------+---------------------
 Reporter:  TimothyBlynJacobs                     |       Owner:  (none)
     Type:  enhancement                           |      Status:  new
 Priority:  normal                                |   Milestone:  5.6
Component:  REST API                              |     Version:
 Severity:  normal                                |  Resolution:
 Keywords:  json-schema has-patch has-unit-tests  |     Focuses:
--------------------------------------------------+---------------------

Comment (by johnbillion):

 This is fundamentally a fairly straight forward change. It looks good, it
 has good test coverage, and it's immediately useful.

 I have one concern about changing error codes that I noted in the PR
 @TimothyBlynJacobs .

 Timothy also mentioned that he's not sure about some of the wording in the
 error messages that are exposed, and I agree. I think there are
 improvements that can and should be made there.

 Let's:

 1. Check the back compat concern with renaming `rest_invalid_param` to
 `rest_invalid_type`
 2. Commit
 3. Iterate on error message construction and phrasing

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


More information about the wp-trac mailing list