diff --git a/app/config/specs/open-api3-1.8.x-client.json b/app/config/specs/open-api3-1.8.x-client.json index fd2752e337..033a84f680 100644 --- a/app/config/specs/open-api3-1.8.x-client.json +++ b/app/config/specs/open-api3-1.8.x-client.json @@ -5049,12 +5049,12 @@ "type": "object", "properties": { "value": { - "type": "mixed", + "type": "number", "description": "Value to decrement the attribute by. The value must be a number.", "x-example": null }, "min": { - "type": "mixed", + "type": "number", "description": "Minimum value for the attribute. If the current value is lesser than this value, an exception will be thrown.", "x-example": null } @@ -5163,12 +5163,12 @@ "type": "object", "properties": { "value": { - "type": "mixed", + "type": "number", "description": "Value to increment the attribute by. The value must be a number.", "x-example": null }, "max": { - "type": "mixed", + "type": "number", "description": "Maximum value for the attribute. If the current value is greater than this value, an error will be thrown.", "x-example": null } diff --git a/app/config/specs/open-api3-1.8.x-console.json b/app/config/specs/open-api3-1.8.x-console.json index 4372df4eb3..158cb9859a 100644 --- a/app/config/specs/open-api3-1.8.x-console.json +++ b/app/config/specs/open-api3-1.8.x-console.json @@ -8996,12 +8996,12 @@ "type": "object", "properties": { "value": { - "type": "mixed", + "type": "number", "description": "Value to decrement the attribute by. The value must be a number.", "x-example": null }, "min": { - "type": "mixed", + "type": "number", "description": "Minimum value for the attribute. If the current value is lesser than this value, an exception will be thrown.", "x-example": null } @@ -9110,12 +9110,12 @@ "type": "object", "properties": { "value": { - "type": "mixed", + "type": "number", "description": "Value to increment the attribute by. The value must be a number.", "x-example": null }, "max": { - "type": "mixed", + "type": "number", "description": "Maximum value for the attribute. If the current value is greater than this value, an error will be thrown.", "x-example": null } diff --git a/app/config/specs/open-api3-1.8.x-server.json b/app/config/specs/open-api3-1.8.x-server.json index 871f5a1e57..05f3e778fc 100644 --- a/app/config/specs/open-api3-1.8.x-server.json +++ b/app/config/specs/open-api3-1.8.x-server.json @@ -8399,12 +8399,12 @@ "type": "object", "properties": { "value": { - "type": "mixed", + "type": "number", "description": "Value to decrement the attribute by. The value must be a number.", "x-example": null }, "min": { - "type": "mixed", + "type": "number", "description": "Minimum value for the attribute. If the current value is lesser than this value, an exception will be thrown.", "x-example": null } @@ -8515,12 +8515,12 @@ "type": "object", "properties": { "value": { - "type": "mixed", + "type": "number", "description": "Value to increment the attribute by. The value must be a number.", "x-example": null }, "max": { - "type": "mixed", + "type": "number", "description": "Maximum value for the attribute. If the current value is greater than this value, an error will be thrown.", "x-example": null } diff --git a/app/config/specs/open-api3-latest-client.json b/app/config/specs/open-api3-latest-client.json index fd2752e337..033a84f680 100644 --- a/app/config/specs/open-api3-latest-client.json +++ b/app/config/specs/open-api3-latest-client.json @@ -5049,12 +5049,12 @@ "type": "object", "properties": { "value": { - "type": "mixed", + "type": "number", "description": "Value to decrement the attribute by. The value must be a number.", "x-example": null }, "min": { - "type": "mixed", + "type": "number", "description": "Minimum value for the attribute. If the current value is lesser than this value, an exception will be thrown.", "x-example": null } @@ -5163,12 +5163,12 @@ "type": "object", "properties": { "value": { - "type": "mixed", + "type": "number", "description": "Value to increment the attribute by. The value must be a number.", "x-example": null }, "max": { - "type": "mixed", + "type": "number", "description": "Maximum value for the attribute. If the current value is greater than this value, an error will be thrown.", "x-example": null } diff --git a/app/config/specs/open-api3-latest-console.json b/app/config/specs/open-api3-latest-console.json index 4372df4eb3..158cb9859a 100644 --- a/app/config/specs/open-api3-latest-console.json +++ b/app/config/specs/open-api3-latest-console.json @@ -8996,12 +8996,12 @@ "type": "object", "properties": { "value": { - "type": "mixed", + "type": "number", "description": "Value to decrement the attribute by. The value must be a number.", "x-example": null }, "min": { - "type": "mixed", + "type": "number", "description": "Minimum value for the attribute. If the current value is lesser than this value, an exception will be thrown.", "x-example": null } @@ -9110,12 +9110,12 @@ "type": "object", "properties": { "value": { - "type": "mixed", + "type": "number", "description": "Value to increment the attribute by. The value must be a number.", "x-example": null }, "max": { - "type": "mixed", + "type": "number", "description": "Maximum value for the attribute. If the current value is greater than this value, an error will be thrown.", "x-example": null } diff --git a/app/config/specs/open-api3-latest-server.json b/app/config/specs/open-api3-latest-server.json index 871f5a1e57..05f3e778fc 100644 --- a/app/config/specs/open-api3-latest-server.json +++ b/app/config/specs/open-api3-latest-server.json @@ -8399,12 +8399,12 @@ "type": "object", "properties": { "value": { - "type": "mixed", + "type": "number", "description": "Value to decrement the attribute by. The value must be a number.", "x-example": null }, "min": { - "type": "mixed", + "type": "number", "description": "Minimum value for the attribute. If the current value is lesser than this value, an exception will be thrown.", "x-example": null } @@ -8515,12 +8515,12 @@ "type": "object", "properties": { "value": { - "type": "mixed", + "type": "number", "description": "Value to increment the attribute by. The value must be a number.", "x-example": null }, "max": { - "type": "mixed", + "type": "number", "description": "Maximum value for the attribute. If the current value is greater than this value, an error will be thrown.", "x-example": null } diff --git a/app/config/specs/swagger2-1.8.x-client.json b/app/config/specs/swagger2-1.8.x-client.json index d5ff0f609c..24ae416a10 100644 --- a/app/config/specs/swagger2-1.8.x-client.json +++ b/app/config/specs/swagger2-1.8.x-client.json @@ -5169,13 +5169,13 @@ "type": "object", "properties": { "value": { - "type": "mixed", + "type": "number", "description": "Value to decrement the attribute by. The value must be a number.", "default": 1, "x-example": null }, "min": { - "type": "mixed", + "type": "number", "description": "Minimum value for the attribute. If the current value is lesser than this value, an exception will be thrown.", "default": null, "x-example": null @@ -5277,13 +5277,13 @@ "type": "object", "properties": { "value": { - "type": "mixed", + "type": "number", "description": "Value to increment the attribute by. The value must be a number.", "default": 1, "x-example": null }, "max": { - "type": "mixed", + "type": "number", "description": "Maximum value for the attribute. If the current value is greater than this value, an error will be thrown.", "default": null, "x-example": null diff --git a/src/Appwrite/SDK/Specification/Format/OpenAPI3.php b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php index 19742ee3ee..b808a27f98 100644 --- a/src/Appwrite/SDK/Specification/Format/OpenAPI3.php +++ b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php @@ -444,11 +444,11 @@ class OpenAPI3 extends Format $node['schema']['format'] = $validator->getType() == Validator::TYPE_INTEGER ? 'int32' : 'float'; $node['schema']['x-example'] = $validator->getMin(); break; - case 'Utopia\Validator\Numeric': case 'Utopia\Validator\Integer': $node['schema']['type'] = $validator->getType(); $node['schema']['format'] = 'int32'; break; + case 'Utopia\Validator\Numeric': case 'Utopia\Validator\FloatValidator': $node['schema']['type'] = 'number'; $node['schema']['format'] = 'float';