mirror of
https://github.com/nextcloud/server.git
synced 2026-06-14 19:20:35 -04:00
fix(provisioning_api): Fix quota fields in OpenAPI
Signed-off-by: jld3103 <jld3103yt@gmail.com>
This commit is contained in:
parent
61143644a4
commit
d019392645
2 changed files with 44 additions and 12 deletions
|
|
@ -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{
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue