mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 11:22:26 +00:00
openapi: Fix schema
Fix openapi schema to be a valid yaml. Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
parent
f994665610
commit
99e608c240
@ -133,6 +133,12 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/VmResize'
|
$ref: '#/components/schemas/VmResize'
|
||||||
required: true
|
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:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
|
|
||||||
@ -218,15 +224,13 @@ components:
|
|||||||
CpuConfig:
|
CpuConfig:
|
||||||
required:
|
required:
|
||||||
- boot_vcpus
|
- boot_vcpus
|
||||||
|
- max_vcpus
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
boot_vcpus:
|
boot_vcpus:
|
||||||
minimum: 1
|
minimum: 1
|
||||||
default: 1
|
default: 1
|
||||||
type: integer
|
type: integer
|
||||||
- max_vcpus
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
max_vcpus:
|
max_vcpus:
|
||||||
minimum: 1
|
minimum: 1
|
||||||
default: 1
|
default: 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user