wordpress-develop/tests/phpunit/tests/rest-api
Joe Hoyle fb2e44456e REST API: Don’t remove unregistered properties from objects in schema.
In r41727 the ability to sanitise and validate objects from JSON schema was added, with a whitelist approach. It was decided we should pass through all non-registered properties to reflect the behaviour of the root object in register_rest_route. To prevent arbitrary extra data via setting objects, we force additionalProperties to false in the settings endpoint.

See #38583.

git-svn-id: https://develop.svn.wordpress.org/trunk@42000 602fd350-edb4-49c9-b593-d223f7449a82
2017-10-24 21:04:50 +00:00
..
rest-attachments-controller.php REST API: Confirm the parent post object of an attachment exists in WP_REST_Posts_Controller::check_read_permission(). 2017-03-20 04:29:50 +00:00
rest-categories-controller.php REST API: Support ordering response collection by listed slugs. 2017-10-05 00:36:43 +00:00
rest-comments-controller.php REST API: Fix multiple issues with setting dates of posts and comments. 2017-02-21 18:17:32 +00:00
rest-controller.php REST API: Remove rest_get_post filter and get_post abstraction. 2016-11-08 13:08:49 +00:00
rest-pages-controller.php REST API: Populate some missing tests from test cases which extend the controller test case. 2017-08-04 13:55:04 +00:00
rest-post-meta-fields.php REST API: Add some missing assertions to various REST API tests. 2017-07-27 19:03:45 +00:00
rest-post-statuses-controller.php REST API: Add some missing assertions to various REST API tests. 2017-07-27 19:03:45 +00:00
rest-post-types-controller.php REST API: Add some missing assertions to various REST API tests. 2017-07-27 19:03:45 +00:00
rest-posts-controller.php REST API: Allow passing existing template value for posts even when template no longer exists. 2017-10-23 22:10:48 +00:00
rest-request-validation.php REST API: Add group and description to WP_Test_REST_Request_Validation. 2017-01-20 17:12:59 +00:00
rest-request.php REST API: Always add index.php to the REST URL when pretty permalinks are disabled. 2017-07-25 00:49:22 +00:00
rest-revisions-controller.php General: Fix various instances of incorrect filter docs and incorrect filter and action parameters. 2017-08-03 15:42:45 +00:00
rest-schema-sanitization.php REST API: Don’t remove unregistered properties from objects in schema. 2017-10-24 21:04:50 +00:00
rest-schema-setup.php WP-API JS Client: Improve support for meta. 2017-10-02 18:39:30 +00:00
rest-schema-validation.php REST API: Don’t remove unregistered properties from objects in schema. 2017-10-24 21:04:50 +00:00
rest-server.php REST API: Exclude numeric parameters from regex parsing 2017-08-03 19:54:56 +00:00
rest-settings-controller.php REST API: Don’t remove unregistered properties from objects in schema. 2017-10-24 21:04:50 +00:00
rest-tags-controller.php REST API: Support ordering response collection by listed slugs. 2017-10-05 00:36:43 +00:00
rest-taxonomies-controller.php REST API: Add some missing assertions to various REST API tests. 2017-07-27 19:03:45 +00:00
rest-test-controller.php REST API: Introduce the Content API endpoints. 2016-10-20 02:54:12 +00:00
rest-users-controller.php REST API: Support ordering response collection by listed slugs. 2017-10-05 00:36:43 +00:00