rest_find_any_matching_schema
rest_find_any_matching_schema ( $value, $args, $param )
Parameters:- (mixed) value The value to validate.
- (array) args The schema array to use.
- (string) param The parameter name, used in error messages.
Returns:- (array|WP_Error) The matching schema or WP_Error instance if all schemas do not match.
Defined at: - Introduced in WordPress: 5.6.0
- Deprecated in WordPress: —
Description
Finds the matching schema among the "anyOf" schemas.