From 786e33931f40f991ee5fde941db59e2b17681784 Mon Sep 17 00:00:00 2001 From: Jose Carlos Venegas Munoz Date: Mon, 14 Oct 2019 18:55:49 +0000 Subject: [PATCH] api: http: Fix openpi schema. Fix invalid type for version: - VmInfo.version.type string Change Null value from enum as it has problems to build clients with openapi tools. - ConsoleConfig.mode.enum Null -> Nil Signed-off-by: Jose Carlos Venegas Munoz --- vmm/src/api/openapi/cloud-hypervisor.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vmm/src/api/openapi/cloud-hypervisor.yaml b/vmm/src/api/openapi/cloud-hypervisor.yaml index 85171d357..da47c88ad 100644 --- a/vmm/src/api/openapi/cloud-hypervisor.yaml +++ b/vmm/src/api/openapi/cloud-hypervisor.yaml @@ -159,7 +159,7 @@ components: type: object properties: version: - type: '#/components/schemas/VmConfig' + type: string state: type: string enum: [Created, Booted, Shutdown] @@ -341,7 +341,7 @@ components: type: string mode: type: string - enum: [Off, Tty, File, Null] + enum: [Off, Tty, File, None] iommu: type: boolean default: false