Fix server schema

image in the server response may be an empty string if the server was
provisioned from a volume.
Change-Id: I4ec1d5391d373ec1aaba40b0547b06ebc9629ec2
This commit is contained in:
Artem Goncharov
2025年05月08日 15:40:18 +02:00
parent f193d31dfc
commit d6cbd6dc26

View File

@@ -1529,16 +1529,29 @@ SERVER_SCHEMA: dict[str, Any] = {
"readOnly": True,
},
"image": {
"type": "object",
"description": "The image property as returned from server.",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The image ID",
"oneOf": [
{
"type": "object",
"description": "The image property as returned from server.",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "The image ID",
},
"links": {
"description": "Image links",
**LINKS_SCHEMA,
},
"properties": {
"type": "object",
"x-openstack": {"min-ver": "2.98"},
},
},
"required": ["id"],
},
"links": {"description": "Image links", **LINKS_SCHEMA},
},
{"type": "string", "enum": [""]},
]
},
"OS-EXT-SRV-ATTR:instance_name": {
"type": "string",
Reference in New Issue
openstack/codegenerator
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.