mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
vmm: openapi: Do not provide default values for required fields
This is to resolve the inconsistencies from our openapi specification, as default values do not make sense for required fields. Reported-by: James O. D. Hunt <james.o.hunt@intel.com> Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
parent
6ba4f6de95
commit
75e1dc2bce
@ -667,11 +667,9 @@ components:
|
||||
properties:
|
||||
boot_vcpus:
|
||||
minimum: 1
|
||||
default: 1
|
||||
type: integer
|
||||
max_vcpus:
|
||||
minimum: 1
|
||||
default: 1
|
||||
type: integer
|
||||
topology:
|
||||
$ref: "#/components/schemas/CpuTopology"
|
||||
@ -736,7 +734,6 @@ components:
|
||||
size:
|
||||
type: integer
|
||||
format: int64
|
||||
default: 512 MB
|
||||
file:
|
||||
type: string
|
||||
mergeable:
|
||||
@ -772,7 +769,6 @@ components:
|
||||
size:
|
||||
type: integer
|
||||
format: int64
|
||||
default: 512 MB
|
||||
hotplug_size:
|
||||
type: integer
|
||||
format: int64
|
||||
@ -857,7 +853,7 @@ components:
|
||||
type: string
|
||||
rate_limiter_config:
|
||||
$ref: "#/components/schemas/RateLimiterConfig"
|
||||
|
||||
|
||||
VirtQueueAffinity:
|
||||
required:
|
||||
- queue_index
|
||||
@ -963,7 +959,6 @@ components:
|
||||
properties:
|
||||
src:
|
||||
type: string
|
||||
default: "/dev/urandom"
|
||||
iommu:
|
||||
type: boolean
|
||||
default: false
|
||||
|
Loading…
Reference in New Issue
Block a user