Skip to content

Commit 90b57f4

Browse files
committed
Allow null credentials in export settings routes
1 parent b4e5dfc commit 90b57f4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

liens-morts-detector-jlg/includes/blc-google-sheets.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ function blc_register_google_sheets_rest_routes()
542542
'required' => false,
543543
],
544544
'client_secret' => [
545-
'type' => 'string',
545+
'type' => ['string', 'null'],
546546
'required' => false,
547547
],
548548
'ranges' => [

liens-morts-detector-jlg/includes/blc-s3-exports.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -643,15 +643,15 @@ function blc_register_s3_rest_routes()
643643
'required' => false,
644644
],
645645
'access_key_id' => [
646-
'type' => 'string',
646+
'type' => ['string', 'null'],
647647
'required' => false,
648648
],
649649
'secret_access_key' => [
650-
'type' => 'string',
650+
'type' => ['string', 'null'],
651651
'required' => false,
652652
],
653653
'session_token' => [
654-
'type' => 'string',
654+
'type' => ['string', 'null'],
655655
'required' => false,
656656
],
657657
'object_prefix' => [

0 commit comments

Comments
 (0)