From fdeb4f7c4627e4ad93931f08edecc72e717e6e00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Wed, 27 Apr 2022 21:14:49 +0200 Subject: [PATCH] Revert "vmm, openapi: Token Bucket fields should be uint64" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 87eed369cd091db76ed8542750803659e729b239. The reason we're reverting this is that OpenAPI Specification[0] doesn't know how to deal with unsigned types. :-/ Right now the best to do is keep it as it's, as an int64, and try to fix OpenAPI, or even switch to swagger, as the latter knows how to properly deal with those. However, switching to swagger is far from being an 1:1 transition and will require time to experiment, thus reverting this for now seems the best approach. [0]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#data-types Signed-off-by: Fabiano FidĂȘncio --- vmm/src/api/openapi/cloud-hypervisor.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vmm/src/api/openapi/cloud-hypervisor.yaml b/vmm/src/api/openapi/cloud-hypervisor.yaml index 6494c5374..4c0cff139 100644 --- a/vmm/src/api/openapi/cloud-hypervisor.yaml +++ b/vmm/src/api/openapi/cloud-hypervisor.yaml @@ -729,17 +729,17 @@ components: properties: size: type: integer - format: uint64 + format: int64 minimum: 0 description: The total number of tokens this bucket can hold. one_time_burst: type: integer - format: uint64 + format: int64 minimum: 0 description: The initial size of a token bucket. refill_time: type: integer - format: uint64 + format: int64 minimum: 0 description: The amount of milliseconds it takes for the bucket to refill. description: