Revert "vmm, openapi: Token Bucket fields should be uint64"

This reverts commit 87eed369cd.

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 <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio 2022-04-27 21:14:49 +02:00 committed by Sebastien Boeuf
parent 7388f71228
commit fdeb4f7c46

View File

@ -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: