Update query type for filter_empty
Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
This commit is contained in:
parent
fc6c01736a
commit
d4b77eead6
|
@ -528,19 +528,17 @@ class Controller extends GenericController implements ExportableInterface {
|
|||
'type' => 'array',
|
||||
'validate_callback' => 'rest_validate_request_arg',
|
||||
'items' => array(
|
||||
'type' => array(
|
||||
'description' => __( 'Fields that required to be not empty', 'woocommerce' ),
|
||||
'type' => 'string',
|
||||
'enum' => array(
|
||||
'email',
|
||||
'name',
|
||||
'country',
|
||||
'city',
|
||||
'state',
|
||||
'postcode',
|
||||
),
|
||||
'type' => 'string',
|
||||
'enum' => array(
|
||||
'email',
|
||||
'name',
|
||||
'country',
|
||||
'city',
|
||||
'state',
|
||||
'postcode',
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
return $params;
|
||||
|
|
Loading…
Reference in New Issue