fix openapi for userentities

This commit is contained in:
Robert Resch 2020-12-24 09:50:38 +00:00
parent 904848d09a
commit 5406916ad6
No known key found for this signature in database
GPG Key ID: 5E3DFB30DC2833B6

View File

@ -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": []
}
]
}
}