From 303001e15e524ab34947e03fe4f2fd90d6523adf Mon Sep 17 00:00:00 2001 From: Artem Goncharov Date: Thu, 22 May 2025 17:42:37 +0200 Subject: [PATCH] Ensure swift bytes are positive integers In swift we service return few integer attributes which can only be positive. Ensure this is incorporated in the schema. Change-Id: I23509ca116f607a2b26fa1c01387dbd4f4df705a Signed-off-by: Artem Goncharov --- static/openapi_specs/object-store/v1.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/openapi_specs/object-store/v1.yaml b/static/openapi_specs/object-store/v1.yaml index 6ec951c..273d782 100644 --- a/static/openapi_specs/object-store/v1.yaml +++ b/static/openapi_specs/object-store/v1.yaml @@ -1355,11 +1355,13 @@ components: description: The number of objects in the container. type: integer format: int64 + minimum: 0 bytes: description: | The total number of bytes that are stored in Object Storage for the account. type: integer format: int64 + minimum: 0 name: description: The name of the container. type: string @@ -1385,6 +1387,7 @@ components: The total number of bytes that are stored in Object Storage for the container. type: integer format: int64 + minimum: 0 hash: description: The MD5 checksum value of the object content. type: string