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