mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
chore: remove deprecatedMessage
This commit is contained in:
@@ -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'] ?? '';
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user