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:

Description

Finds the matching schema among the "anyOf" schemas.

Related Functions

rest_find_one_matching_schema, rest_find_matching_pattern_property_schema, rest_handle_multi_type_schema, rest_get_endpoint_args_for_schema, register_admin_color_schemes

Top Google Results

User discussions

wpseek mobile