mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: openapi: Fix integer schema formats
The current OpenAPI schema format is wrong because uint16 and uint32 are not valid top-level OpenAPI types. Describe queue_size and virtio_id as integer types with explicit uint formats instead. Signed-off-by: Roman <roman@vanesyan.com>
This commit is contained in:
@@ -1161,7 +1161,8 @@ components:
|
|||||||
queue_size:
|
queue_size:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: uint16
|
type: integer
|
||||||
|
format: uint16
|
||||||
pci_segment:
|
pci_segment:
|
||||||
type: integer
|
type: integer
|
||||||
format: int16
|
format: int16
|
||||||
@@ -1169,7 +1170,8 @@ components:
|
|||||||
type: integer
|
type: integer
|
||||||
format: uint8
|
format: uint8
|
||||||
virtio_id:
|
virtio_id:
|
||||||
type: uint32
|
type: integer
|
||||||
|
format: uint32
|
||||||
|
|
||||||
PmemConfig:
|
PmemConfig:
|
||||||
required:
|
required:
|
||||||
|
|||||||
Reference in New Issue
Block a user