fix(provisioning_api): Fix quota fields in OpenAPI

Signed-off-by: jld3103 <jld3103yt@gmail.com>
This commit is contained in:
jld3103 2023-10-22 13:28:39 +02:00
parent 61143644a4
commit d019392645
No known key found for this signature in database
GPG key ID: 9062417B9E8EB7B3
2 changed files with 44 additions and 12 deletions

View file

@ -27,11 +27,11 @@ namespace OCA\Provisioning_API;
/**
* @psalm-type ProvisioningApiUserDetailsQuota = array{
* free?: float,
* free?: float|int,
* quota?: float|int|string,
* relative?: float,
* total?: float,
* used?: float,
* relative?: float|int,
* total?: float|int,
* used?: float|int,
* }
*
* @psalm-type ProvisioningApiUserDetails = array{

View file

@ -507,8 +507,16 @@
"type": "object",
"properties": {
"free": {
"type": "number",
"format": "float"
"oneOf": [
{
"type": "number",
"format": "float"
},
{
"type": "integer",
"format": "int64"
}
]
},
"quota": {
"oneOf": [
@ -526,16 +534,40 @@
]
},
"relative": {
"type": "number",
"format": "float"
"oneOf": [
{
"type": "number",
"format": "float"
},
{
"type": "integer",
"format": "int64"
}
]
},
"total": {
"type": "number",
"format": "float"
"oneOf": [
{
"type": "number",
"format": "float"
},
{
"type": "integer",
"format": "int64"
}
]
},
"used": {
"type": "number",
"format": "float"
"oneOf": [
{
"type": "number",
"format": "float"
},
{
"type": "integer",
"format": "int64"
}
]
}
}
}