diff --git a/src/Appwrite/SDK/Method.php b/src/Appwrite/SDK/Method.php index 1600cd2693..ba7c1452bd 100644 --- a/src/Appwrite/SDK/Method.php +++ b/src/Appwrite/SDK/Method.php @@ -180,11 +180,6 @@ class Method return $this->deprecated !== null && \is_array($this->deprecated); } - public function getDeprecationMessage(): ?string - { - return $this->deprecated['message'] ?? ''; - } - public function getDeprecationVersion(): ?string { return $this->deprecated['version'] ?? ''; diff --git a/src/Appwrite/SDK/Specification/Format/OpenAPI3.php b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php index 65ab60ed3a..005b305909 100644 --- a/src/Appwrite/SDK/Specification/Format/OpenAPI3.php +++ b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php @@ -159,7 +159,6 @@ class OpenAPI3 extends Format 'cookies' => $route->getLabel('sdk.cookies', false), 'type' => $sdk->getType()->value ?? '', 'deprecated' => $sdk->isDeprecated(), - ...(!empty($sdk->getDeprecationMessage()) ? ['deprecatedMessage' => $sdk->getDeprecationMessage()] : []), ...(!empty($sdk->getDeprecationVersion()) ? ['deprecatedVersion' => $sdk->getDeprecationVersion()] : []), ...(!empty($sdk->getDeprecationReplacement()) ? ['replaceWith' => $sdk->getDeprecationReplacement()] : []), 'demo' => Template::fromCamelCaseToDash($namespace) . '/' . Template::fromCamelCaseToDash($method) . '.md', diff --git a/src/Appwrite/SDK/Specification/Format/Swagger2.php b/src/Appwrite/SDK/Specification/Format/Swagger2.php index 2bb7651d1d..502eedd614 100644 --- a/src/Appwrite/SDK/Specification/Format/Swagger2.php +++ b/src/Appwrite/SDK/Specification/Format/Swagger2.php @@ -161,7 +161,6 @@ class Swagger2 extends Format 'cookies' => $route->getLabel('sdk.cookies', false), 'type' => $sdk->getType()->value ?? '', 'deprecated' => $sdk->isDeprecated(), - ...(!empty($sdk->getDeprecationMessage()) ? ['deprecatedMessage' => $sdk->getDeprecationMessage()] : []), ...(!empty($sdk->getDeprecationVersion()) ? ['deprecatedVersion' => $sdk->getDeprecationVersion()] : []), ...(!empty($sdk->getDeprecationReplacement()) ? ['replaceWith' => $sdk->getDeprecationReplacement()] : []), 'demo' => Template::fromCamelCaseToDash($namespace) . '/' . Template::fromCamelCaseToDash($method) . '.md',