From 270631922deee9bdea13635a104e111768446c7b Mon Sep 17 00:00:00 2001 From: Julio Montes Date: Tue, 10 Nov 2020 11:20:12 -0600 Subject: [PATCH] vmm: openapi: remove `omitempty` json tag Due to a known limitation in OpenAPITools/openapi-generator tool, it's impossible to send go zero types, like false and 0 to cloud-hypervisor because `omitempty` is added if a field is not required. Set cache_size, dax, num_queues and queue_size as required to remove `omitempty` from the json tag. fixes #1961 Signed-off-by: Julio Montes --- vmm/src/api/openapi/cloud-hypervisor.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vmm/src/api/openapi/cloud-hypervisor.yaml b/vmm/src/api/openapi/cloud-hypervisor.yaml index 5de235755..06a9bb3f5 100644 --- a/vmm/src/api/openapi/cloud-hypervisor.yaml +++ b/vmm/src/api/openapi/cloud-hypervisor.yaml @@ -654,8 +654,12 @@ components: FsConfig: required: - - tag + - cache_size + - dax + - num_queues + - queue_size - socket + - tag type: object properties: tag: