From 99e608c240e6302af85bfb881a5812d6da208dbe Mon Sep 17 00:00:00 2001 From: Jose Carlos Venegas Munoz Date: Mon, 9 Dec 2019 18:27:06 +0000 Subject: [PATCH] openapi: Fix schema Fix openapi schema to be a valid yaml. Signed-off-by: Jose Carlos Venegas Munoz --- vmm/src/api/openapi/cloud-hypervisor.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/vmm/src/api/openapi/cloud-hypervisor.yaml b/vmm/src/api/openapi/cloud-hypervisor.yaml index a92af5ca9..3e1e57775 100644 --- a/vmm/src/api/openapi/cloud-hypervisor.yaml +++ b/vmm/src/api/openapi/cloud-hypervisor.yaml @@ -133,6 +133,12 @@ paths: schema: $ref: '#/components/schemas/VmResize' required: true + responses: + 204: + description: The VM instance was successfully resized. + 404: + description: The VM instance could not be resized because it is not created. + components: schemas: @@ -218,15 +224,13 @@ components: CpuConfig: required: - boot_vcpus + - max_vcpus type: object properties: boot_vcpus: minimum: 1 default: 1 type: integer - - max_vcpus - type: object - properties: max_vcpus: minimum: 1 default: 1