Skip to content

Commit

Permalink
Specify setting allowed values.
Browse files Browse the repository at this point in the history
  • Loading branch information
vedanshujain committed Aug 5, 2020
1 parent 519eace commit 40920d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -532,15 +532,15 @@ public function get_item_schema() {
'description' => __( 'Setting value.', 'woocommerce-rest-api' ),
'type' => array( 'string', 'array', 'null' ),
'items' => array(
'type' => array( 'string', 'integer', 'null' ),
'type' => array( 'string', 'null' ),
),
'context' => array( 'view', 'edit' ),
),
'default' => array(
'description' => __( 'Default value for the setting.', 'woocommerce-rest-api' ),
'type' => array( 'string', 'array', 'null' ),
'items' => array(
'type' => array( 'string', 'integer', 'null' ),
'type' => array( 'string', 'null' ),
),
'context' => array( 'view', 'edit' ),
'readonly' => true,
Expand Down
Expand Up @@ -201,15 +201,15 @@ public function get_item_schema() {
'description' => __( 'Setting value.', 'woocommerce-rest-api' ),
'type' => array( 'string', 'array', 'null' ),
'items' => array(
'type' => array( 'string', 'integer', 'null' ),
'type' => array( 'string', 'null' ),
),
'context' => array( 'view', 'edit' ),
),
'default' => array(
'description' => __( 'Default value for the setting.', 'woocommerce-rest-api' ),
'type' => array( 'string', 'array', 'null' ),
'items' => array(
'type' => array( 'string', 'integer', 'null' ),
'type' => array( 'string', 'null' ),
),
'context' => array( 'view', 'edit' ),
'readonly' => true,
Expand Down

0 comments on commit 40920d3

Please sign in to comment.