Setting the file. One moment.
Subchapter 17.6
references/schema.mdMarkdown964 BView on GitHub
get_item_schema() on controllers or schema callbacks on routes.OPTIONS) and validation.rest_validate_value_from_schema( $value, $schema ) then rest_sanitize_value_from_schema( $value, $schema ).sanitize_callback, built-in schema validation will not run; use rest_validate_request_arg to keep it.WP_REST_Controller::get_endpoint_args_for_item_schema() wires validation automatically.$this->schema) to avoid recomputation.date-time, uri, email, ip, uuid, hex-color.array and object types, you must define items or properties schemas.