mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 20:36:15 +02:00
fix openapi for userentities
This commit is contained in:
parent
904848d09a
commit
5406916ad6
|
|
@ -571,7 +571,14 @@
|
|||
"required": true,
|
||||
"description": "A valid entity name",
|
||||
"schema": {
|
||||
"$ref": "#/components/internalSchemas/ExposedEntity"
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "#/components/internalSchemas/ExposedEntity"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/internalSchemas/ExposedUserEntity"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -620,7 +627,14 @@
|
|||
"required": true,
|
||||
"description": "A valid entity name",
|
||||
"schema": {
|
||||
"$ref": "#/components/internalSchemas/ExposedEntity_NotIncludingNotEditable"
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "#/components/internalSchemas/ExposedEntity_NotIncludingNotEditable"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/internalSchemas/ExposedUserEntity"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -3942,6 +3956,10 @@
|
|||
"api_keys"
|
||||
]
|
||||
},
|
||||
"ExposedUserEntity": {
|
||||
"type": "string",
|
||||
"pattern": "^userentity-"
|
||||
},
|
||||
"ExposedEntityNoListing": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
|
|
@ -5241,4 +5259,4 @@
|
|||
"ApiKeyAuth": []
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user