From 0ea706faf56daf71d384078c8c295fca0b30678b Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Tue, 7 Apr 2020 16:04:46 +0200 Subject: [PATCH] vmm: openapi: Update OpenAPI definition with RestoreConfig Making sure the OpenAPI definition is up to date with newly added structure and parameters to support VM restoration. Signed-off-by: Sebastien Boeuf --- vmm/src/api/openapi/cloud-hypervisor.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vmm/src/api/openapi/cloud-hypervisor.yaml b/vmm/src/api/openapi/cloud-hypervisor.yaml index 4d166f5cd..aa4a3c07c 100644 --- a/vmm/src/api/openapi/cloud-hypervisor.yaml +++ b/vmm/src/api/openapi/cloud-hypervisor.yaml @@ -245,7 +245,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VmRestoreConfig' + $ref: '#/components/schemas/RestoreConfig' required: true responses: 204: @@ -583,8 +583,12 @@ components: destination_url: type: string - VmRestoreConfig: + RestoreConfig: + required: + - source_url type: object properties: source_url: type: string + prefault: + type: boolean