diff --git a/codegenerator/openapi/nova_schemas.py b/codegenerator/openapi/nova_schemas.py index 341cca4..a339fb6 100644 --- a/codegenerator/openapi/nova_schemas.py +++ b/codegenerator/openapi/nova_schemas.py @@ -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",

AltStyle によって変換されたページ (->オリジナル) /