$matching_schema =
rest_find_any_matching_schema( $value,
$args,
$param );
if ( is_wp_error( $matching_schema ) ) { return $matching_schema;
} if ( !
isset( $args['type'
] ) &&
isset( $matching_schema['type'
] ) ) { $args['type'
] =
$matching_schema['type'
];
} } if ( isset( $args['oneOf'
] ) ) { $matching_schema =
rest_find_one_matching_schema( $value,
$args,
$param );
if ( is_wp_error( $matching_schema ) ) { return $matching_schema;
} if ( !
isset( $args['type'
] ) &&
isset( $matching_schema['type'
] ) ) { $args['type'
] =
$matching_schema['type'
];
} } $allowed_types = array
( 'array', 'object', 'string', 'number', 'integer', 'boolean', 'null'
);