[wp-trac] [WordPress Trac] #51020: The public route args schema drops valid JSON Schema properties
WordPress Trac
noreply at wordpress.org
Sun Aug 16 18:45:31 UTC 2020
#51020: The public route args schema drops valid JSON Schema properties
------------------------------------+-----------------------
Reporter: raubvogel | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.6
Component: REST API | Version: 4.7
Severity: normal | Resolution:
Keywords: dev-feedback has-patch | Focuses: rest-api
------------------------------------+-----------------------
Comment (by TimothyBlynJacobs):
Thanks for the patch @raubvogel, this looks good!
Instead of making this a method on `WP_REST_Controller` though, let's make
this a standalone function: `rest_get_allowed_schema_keywords`.
Do you want to try writing unit tests for this?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51020#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list