From b3e92c26394344582376c795117c09502c37c8a6 Mon Sep 17 00:00:00 2001 From: withanage Date: Sun, 30 Jul 2023 23:53:20 +0200 Subject: [PATCH] https://github.com/pkp/orcidProfile/issues/271 Remove the orcidTokens, previously rendered in publishing API --- OrcidProfilePlugin.php | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/OrcidProfilePlugin.php b/OrcidProfilePlugin.php index d43b9802..3735db82 100755 --- a/OrcidProfilePlugin.php +++ b/OrcidProfilePlugin.php @@ -137,42 +137,42 @@ public function register($category, $path, $mainContextId = null) $schema->properties->orcidSandbox = (object)[ 'type' => 'string', - 'apiSummary' => true, + 'writeOnly' => 'true', 'validation' => ['nullable'] ]; $schema->properties->orcidAccessToken = (object)[ 'type' => 'string', - 'apiSummary' => true, + 'writeOnly' => 'true', 'validation' => ['nullable'] ]; $schema->properties->orcidAccessScope = (object)[ 'type' => 'string', - 'apiSummary' => true, + 'writeOnly' => 'true', 'validation' => ['nullable'] ]; $schema->properties->orcidRefreshToken = (object)[ 'type' => 'string', - 'apiSummary' => true, + 'writeOnly' => 'true', 'validation' => ['nullable'] ]; $schema->properties->orcidAccessExpiresOn = (object)[ 'type' => 'string', - 'apiSummary' => true, + 'writeOnly' => 'true', 'validation' => ['nullable'] ]; $schema->properties->orcidAccessDenied = (object)[ 'type' => 'string', - 'apiSummary' => true, + 'writeOnly' => 'true', 'validation' => ['nullable'] ]; $schema->properties->orcidEmailToken = (object)[ 'type' => 'string', - 'apiSummary' => true, + 'writeOnly' => 'true', 'validation' => ['nullable'] ]; $schema->properties->orcidWorkPutCode = (object)[ 'type' => 'string', - 'apiSummary' => true, + 'writeOnly' => 'true', 'validation' => ['nullable'] ]; }); @@ -183,32 +183,32 @@ public function register($category, $path, $mainContextId = null) $schema->properties->orcidAccessToken = (object)[ 'type' => 'string', - 'apiSummary' => true, + 'writeOnly' => 'true', 'validation' => ['nullable'] ]; $schema->properties->orcidAccessScope = (object)[ 'type' => 'string', - 'apiSummary' => true, + 'writeOnly' => 'true', 'validation' => ['nullable'] ]; $schema->properties->orcidRefreshToken = (object)[ 'type' => 'string', - 'apiSummary' => true, + 'writeOnly' => 'true', 'validation' => ['nullable'] ]; $schema->properties->orcidAccessExpiresOn = (object)[ 'type' => 'string', - 'apiSummary' => true, + 'writeOnly' => 'true', 'validation' => ['nullable'] ]; $schema->properties->orcidAccessDenied = (object)[ 'type' => 'string', - 'apiSummary' => true, + 'writeOnly' => 'true', 'validation' => ['nullable'] ]; $schema->properties->orcidReviewPutCode = (object)[ 'type' => 'string', - 'apiSummary' => true, + 'writeOnly' => 'true', 'validation' => ['nullable'] ]; });