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:
Bo Chen 2024-05-01 09:32:27 -07:00
parent 6ba4f6de95
commit 75e1dc2bce

View File

@ -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