diff --git a/codegenerator/openapi/cinder_schemas/attachment.py b/codegenerator/openapi/cinder_schemas/attachment.py index 775c862..0673c08 100644 --- a/codegenerator/openapi/cinder_schemas/attachment.py +++ b/codegenerator/openapi/cinder_schemas/attachment.py @@ -57,7 +57,7 @@ ATTACHMENT_DETAIL_SCHEMA: dict[str, Any] = { "attach_mode": { "type": "string", "description": "The attach mode of attachment, read-only (‘ro’) or read-and-write (‘rw’), default is ‘rw’.", - "enum": ["ro", "rw"], + "enum": ["null", "ro", "rw"], "x-openstack": {"min-ver": "3.54"}, }, "attached_at": { diff --git a/codegenerator/openapi/cinder_schemas/volume.py b/codegenerator/openapi/cinder_schemas/volume.py index b2f102a..3267885 100644 --- a/codegenerator/openapi/cinder_schemas/volume.py +++ b/codegenerator/openapi/cinder_schemas/volume.py @@ -145,7 +145,7 @@ VOLUME_SCHEMA: dict[str, Any] = { "description": "The date and time when the resource was updated.", }, "replication_status": { - "type": "string", + "type": ["string", "null"], "description": "The volume replication status.", }, "id": { @@ -203,7 +203,6 @@ VOLUME_SCHEMA: dict[str, Any] = { "bootable", "encrypted", "id", - "migration_status", "name", "replication_status", "size",