Fix open API specs

This commit is contained in:
Jake Barnby
2025-06-10 15:22:13 -04:00
parent d067d215b1
commit 5f588b0c65
8 changed files with 29 additions and 29 deletions
+4 -4
View File
@@ -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
}
@@ -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
}
+4 -4
View File
@@ -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
}
@@ -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
}
@@ -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
}
@@ -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
}
+4 -4
View File
@@ -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
@@ -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';