From 0076ed515c7deb1e7f38888be628a2ae9fa6adc2 Mon Sep 17 00:00:00 2001 From: Artem Goncharov Date: Thu, 11 Sep 2025 09:34:27 +0200 Subject: [PATCH] fix: Fix i32/u32 types in few object-store operations codegenerator has been improved to respect integer constraints. When minimum is set to 0 the resulting type would be unsigned. --- openstack_cli/src/object_store/v1/container/list.rs | 2 +- openstack_cli/src/object_store/v1/object/list.rs | 2 +- openstack_sdk/src/api/object_store/v1/account/get.rs | 2 +- openstack_sdk/src/api/object_store/v1/container/get.rs | 2 +- openstack_types/src/object_store/v1/account/response/get.rs | 4 ++-- openstack_types/src/object_store/v1/container/response/get.rs | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/openstack_cli/src/object_store/v1/container/list.rs b/openstack_cli/src/object_store/v1/container/list.rs index 616439807..ea49c726b 100644 --- a/openstack_cli/src/object_store/v1/container/list.rs +++ b/openstack_cli/src/object_store/v1/container/list.rs @@ -40,7 +40,7 @@ use openstack_sdk::api::{Pagination, paged}; pub struct ContainersCommand { /// For an integer value n, limits the number of results to n. #[arg(long)] - limit: Option, + limit: Option, /// For a string value, x, constrains the list to items whose names are /// greater than x. diff --git a/openstack_cli/src/object_store/v1/object/list.rs b/openstack_cli/src/object_store/v1/object/list.rs index 87c4ae032..0ed9be2f8 100644 --- a/openstack_cli/src/object_store/v1/object/list.rs +++ b/openstack_cli/src/object_store/v1/object/list.rs @@ -60,7 +60,7 @@ pub struct ObjectsCommand { /// For an integer value n, limits the number of results to n. #[arg(long)] - limit: Option, + limit: Option, /// For a string value, x, constrains the list to items whose names are /// greater than x. diff --git a/openstack_sdk/src/api/object_store/v1/account/get.rs b/openstack_sdk/src/api/object_store/v1/account/get.rs index a30b72bc1..b4ce1b945 100644 --- a/openstack_sdk/src/api/object_store/v1/account/get.rs +++ b/openstack_sdk/src/api/object_store/v1/account/get.rs @@ -57,7 +57,7 @@ pub struct Request<'a> { /// For an integer value n, limits the number of results to n. #[builder(default)] - limit: Option, + limit: Option, /// For a string value, x, constrains the list to items whose names are /// greater than x. diff --git a/openstack_sdk/src/api/object_store/v1/container/get.rs b/openstack_sdk/src/api/object_store/v1/container/get.rs index 6d63b4ce4..638189d0e 100644 --- a/openstack_sdk/src/api/object_store/v1/container/get.rs +++ b/openstack_sdk/src/api/object_store/v1/container/get.rs @@ -71,7 +71,7 @@ pub struct Request<'a> { /// For an integer value n, limits the number of results to n. #[builder(default)] - limit: Option, + limit: Option, /// For a string value, x, constrains the list to items whose names are /// greater than x. diff --git a/openstack_types/src/object_store/v1/account/response/get.rs b/openstack_types/src/object_store/v1/account/response/get.rs index b8535140a..35321fbc9 100644 --- a/openstack_types/src/object_store/v1/account/response/get.rs +++ b/openstack_types/src/object_store/v1/account/response/get.rs @@ -26,12 +26,12 @@ pub struct AccountResponse { /// account. #[serde(default)] #[structable(optional)] - pub bytes: Option, + pub bytes: Option, /// The number of objects in the container. #[serde(default)] #[structable(optional)] - pub count: Option, + pub count: Option, /// Last modification date of the container #[serde(default)] diff --git a/openstack_types/src/object_store/v1/container/response/get.rs b/openstack_types/src/object_store/v1/container/response/get.rs index cb18d1b2b..5e0df205b 100644 --- a/openstack_types/src/object_store/v1/container/response/get.rs +++ b/openstack_types/src/object_store/v1/container/response/get.rs @@ -26,7 +26,7 @@ pub struct ContainerResponse { /// container. #[serde(default)] #[structable(optional)] - pub bytes: Option, + pub bytes: Option, /// The content type of the object. #[serde(default)]