mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix: version, remove boolean
This commit is contained in:
@@ -2317,7 +2317,7 @@
|
||||
],
|
||||
"packaging": false,
|
||||
"deprecated": {
|
||||
"since": "0.16.0",
|
||||
"since": "1.6.0",
|
||||
"replaceWith": "account.createSession"
|
||||
},
|
||||
"auth": {
|
||||
@@ -2530,7 +2530,7 @@
|
||||
],
|
||||
"packaging": false,
|
||||
"deprecated": {
|
||||
"since": "0.16.0",
|
||||
"since": "1.6.0",
|
||||
"replaceWith": "account.createSession"
|
||||
},
|
||||
"auth": {
|
||||
|
||||
@@ -2333,7 +2333,7 @@
|
||||
],
|
||||
"packaging": false,
|
||||
"deprecated": {
|
||||
"since": "0.16.0",
|
||||
"since": "1.6.0",
|
||||
"replaceWith": "account.createSession"
|
||||
},
|
||||
"auth": {
|
||||
@@ -2546,7 +2546,7 @@
|
||||
],
|
||||
"packaging": false,
|
||||
"deprecated": {
|
||||
"since": "0.16.0",
|
||||
"since": "1.6.0",
|
||||
"replaceWith": "account.createSession"
|
||||
},
|
||||
"auth": {
|
||||
|
||||
@@ -2356,7 +2356,7 @@
|
||||
],
|
||||
"packaging": false,
|
||||
"deprecated": {
|
||||
"since": "0.16.0",
|
||||
"since": "1.6.0",
|
||||
"replaceWith": "account.createSession"
|
||||
},
|
||||
"auth": {
|
||||
@@ -2434,7 +2434,7 @@
|
||||
],
|
||||
"packaging": false,
|
||||
"deprecated": {
|
||||
"since": "0.16.0",
|
||||
"since": "1.6.0",
|
||||
"replaceWith": "account.createSession"
|
||||
},
|
||||
"auth": {
|
||||
|
||||
@@ -2317,7 +2317,7 @@
|
||||
],
|
||||
"packaging": false,
|
||||
"deprecated": {
|
||||
"since": "0.16.0",
|
||||
"since": "1.6.0",
|
||||
"replaceWith": "account.createSession"
|
||||
},
|
||||
"auth": {
|
||||
@@ -2530,7 +2530,7 @@
|
||||
],
|
||||
"packaging": false,
|
||||
"deprecated": {
|
||||
"since": "0.16.0",
|
||||
"since": "1.6.0",
|
||||
"replaceWith": "account.createSession"
|
||||
},
|
||||
"auth": {
|
||||
|
||||
@@ -2333,7 +2333,7 @@
|
||||
],
|
||||
"packaging": false,
|
||||
"deprecated": {
|
||||
"since": "0.16.0",
|
||||
"since": "1.6.0",
|
||||
"replaceWith": "account.createSession"
|
||||
},
|
||||
"auth": {
|
||||
@@ -2546,7 +2546,7 @@
|
||||
],
|
||||
"packaging": false,
|
||||
"deprecated": {
|
||||
"since": "0.16.0",
|
||||
"since": "1.6.0",
|
||||
"replaceWith": "account.createSession"
|
||||
},
|
||||
"auth": {
|
||||
|
||||
@@ -2356,7 +2356,7 @@
|
||||
],
|
||||
"packaging": false,
|
||||
"deprecated": {
|
||||
"since": "0.16.0",
|
||||
"since": "1.6.0",
|
||||
"replaceWith": "account.createSession"
|
||||
},
|
||||
"auth": {
|
||||
@@ -2434,7 +2434,7 @@
|
||||
],
|
||||
"packaging": false,
|
||||
"deprecated": {
|
||||
"since": "0.16.0",
|
||||
"since": "1.6.0",
|
||||
"replaceWith": "account.createSession"
|
||||
},
|
||||
"auth": {
|
||||
|
||||
@@ -2425,7 +2425,7 @@
|
||||
],
|
||||
"packaging": false,
|
||||
"deprecated": {
|
||||
"since": "0.16.0",
|
||||
"since": "1.6.0",
|
||||
"replaceWith": "account.createSession"
|
||||
},
|
||||
"auth": {
|
||||
@@ -2639,7 +2639,7 @@
|
||||
],
|
||||
"packaging": false,
|
||||
"deprecated": {
|
||||
"since": "0.16.0",
|
||||
"since": "1.6.0",
|
||||
"replaceWith": "account.createSession"
|
||||
},
|
||||
"auth": {
|
||||
|
||||
@@ -2451,7 +2451,7 @@
|
||||
],
|
||||
"packaging": false,
|
||||
"deprecated": {
|
||||
"since": "0.16.0",
|
||||
"since": "1.6.0",
|
||||
"replaceWith": "account.createSession"
|
||||
},
|
||||
"auth": {
|
||||
@@ -2665,7 +2665,7 @@
|
||||
],
|
||||
"packaging": false,
|
||||
"deprecated": {
|
||||
"since": "0.16.0",
|
||||
"since": "1.6.0",
|
||||
"replaceWith": "account.createSession"
|
||||
},
|
||||
"auth": {
|
||||
|
||||
@@ -2473,7 +2473,7 @@
|
||||
],
|
||||
"packaging": false,
|
||||
"deprecated": {
|
||||
"since": "0.16.0",
|
||||
"since": "1.6.0",
|
||||
"replaceWith": "account.createSession"
|
||||
},
|
||||
"auth": {
|
||||
@@ -2555,7 +2555,7 @@
|
||||
],
|
||||
"packaging": false,
|
||||
"deprecated": {
|
||||
"since": "0.16.0",
|
||||
"since": "1.6.0",
|
||||
"replaceWith": "account.createSession"
|
||||
},
|
||||
"auth": {
|
||||
|
||||
@@ -2425,7 +2425,7 @@
|
||||
],
|
||||
"packaging": false,
|
||||
"deprecated": {
|
||||
"since": "0.16.0",
|
||||
"since": "1.6.0",
|
||||
"replaceWith": "account.createSession"
|
||||
},
|
||||
"auth": {
|
||||
@@ -2639,7 +2639,7 @@
|
||||
],
|
||||
"packaging": false,
|
||||
"deprecated": {
|
||||
"since": "0.16.0",
|
||||
"since": "1.6.0",
|
||||
"replaceWith": "account.createSession"
|
||||
},
|
||||
"auth": {
|
||||
|
||||
@@ -2451,7 +2451,7 @@
|
||||
],
|
||||
"packaging": false,
|
||||
"deprecated": {
|
||||
"since": "0.16.0",
|
||||
"since": "1.6.0",
|
||||
"replaceWith": "account.createSession"
|
||||
},
|
||||
"auth": {
|
||||
@@ -2665,7 +2665,7 @@
|
||||
],
|
||||
"packaging": false,
|
||||
"deprecated": {
|
||||
"since": "0.16.0",
|
||||
"since": "1.6.0",
|
||||
"replaceWith": "account.createSession"
|
||||
},
|
||||
"auth": {
|
||||
|
||||
@@ -2473,7 +2473,7 @@
|
||||
],
|
||||
"packaging": false,
|
||||
"deprecated": {
|
||||
"since": "0.16.0",
|
||||
"since": "1.6.0",
|
||||
"replaceWith": "account.createSession"
|
||||
},
|
||||
"auth": {
|
||||
@@ -2555,7 +2555,7 @@
|
||||
],
|
||||
"packaging": false,
|
||||
"deprecated": {
|
||||
"since": "0.16.0",
|
||||
"since": "1.6.0",
|
||||
"replaceWith": "account.createSession"
|
||||
},
|
||||
"auth": {
|
||||
|
||||
@@ -2420,7 +2420,7 @@ App::put('/v1/account/sessions/magic-url')
|
||||
],
|
||||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '0.16.0',
|
||||
since: '1.6.0',
|
||||
replaceWith: 'account.createSession'
|
||||
),
|
||||
))
|
||||
@@ -2461,7 +2461,7 @@ App::put('/v1/account/sessions/phone')
|
||||
],
|
||||
contentType: ContentType::JSON,
|
||||
deprecated: new Deprecated(
|
||||
since: '0.16.0',
|
||||
since: '1.6.0',
|
||||
replaceWith: 'account.createSession'
|
||||
),
|
||||
))
|
||||
|
||||
@@ -24,7 +24,7 @@ class Method
|
||||
* @param array<SDKResponse> $responses
|
||||
* @param ContentType $contentType
|
||||
* @param MethodType|null $type
|
||||
* @param bool|Deprecated $deprecated
|
||||
* @param Deprecated|null $deprecated
|
||||
* @param array|bool $hide
|
||||
* @param bool $packaging
|
||||
* @param ContentType $requestType
|
||||
@@ -41,7 +41,7 @@ class Method
|
||||
protected array $responses,
|
||||
protected ContentType $contentType = ContentType::JSON,
|
||||
protected ?MethodType $type = null,
|
||||
protected bool|Deprecated $deprecated = false,
|
||||
protected ?Deprecated $deprecated = null,
|
||||
protected array|bool $hide = false,
|
||||
protected bool $packaging = false,
|
||||
protected ContentType $requestType = ContentType::JSON,
|
||||
@@ -185,10 +185,10 @@ class Method
|
||||
|
||||
public function isDeprecated(): bool
|
||||
{
|
||||
return $this->deprecated !== false;
|
||||
return $this->deprecated !== null;
|
||||
}
|
||||
|
||||
public function getDeprecated(): bool|Deprecated
|
||||
public function getDeprecated(): ?Deprecated
|
||||
{
|
||||
return $this->deprecated;
|
||||
}
|
||||
|
||||
@@ -226,7 +226,7 @@ class OpenAPI3 extends Format
|
||||
];
|
||||
|
||||
// add deprecation only if method has it!
|
||||
if ($methodObj->getDeprecated() instanceof Deprecated) {
|
||||
if ($methodObj->getDeprecated()) {
|
||||
$additionalMethod['deprecated'] = [
|
||||
'since' => $methodObj->getDeprecated()->getSince(),
|
||||
'replaceWith' => $methodObj->getDeprecated()->getReplaceWith(),
|
||||
|
||||
@@ -171,7 +171,7 @@ class Swagger2 extends Format
|
||||
],
|
||||
];
|
||||
|
||||
if ($sdk->getDeprecated() instanceof Deprecated) {
|
||||
if ($sdk->getDeprecated()) {
|
||||
$temp['x-appwrite']['deprecated'] = [
|
||||
'since' => $sdk->getDeprecated()->getSince(),
|
||||
'replaceWith' => $sdk->getDeprecated()->getReplaceWith(),
|
||||
@@ -235,7 +235,7 @@ class Swagger2 extends Format
|
||||
];
|
||||
|
||||
// add deprecation only if method has it!
|
||||
if ($methodObj->getDeprecated() instanceof Deprecated) {
|
||||
if ($methodObj->getDeprecated()) {
|
||||
$additionalMethod['deprecated'] = [
|
||||
'since' => $methodObj->getDeprecated()->getSince(),
|
||||
'replaceWith' => $methodObj->getDeprecated()->getReplaceWith(),
|
||||
|
||||
Reference in New Issue
Block a user