You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
Modify the schema to apply callbacks or required parameters to nested objects #2783
Allow schema properties like sanitization_callback, type, required, etc. to be set and processed on nested objects.
Currently rest_sanitize_request_arg() and rest_validate_request_arg() only handle properties set on the top level of nested objects, which means if we try to set properties on content.raw they are ignored.
Allow schema properties like
sanitization_callback,type,required, etc. to be set and processed on nested objects.Currently
rest_sanitize_request_arg()andrest_validate_request_arg()only handle properties set on the top level of nested objects, which means if we try to set properties oncontent.rawthey are ignored.