api: http: Fix openpi schema.

Fix invalid type for version:

- VmInfo.version.type string

Change Null value from enum as it has problems to build clients with
openapi tools.

- ConsoleConfig.mode.enum Null -> Nil

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
Jose Carlos Venegas Munoz 2019-10-14 18:55:49 +00:00 committed by Samuel Ortiz
parent 90d1083bda
commit 786e33931f

View File

@ -159,7 +159,7 @@ components:
type: object type: object
properties: properties:
version: version:
type: '#/components/schemas/VmConfig' type: string
state: state:
type: string type: string
enum: [Created, Booted, Shutdown] enum: [Created, Booted, Shutdown]
@ -341,7 +341,7 @@ components:
type: string type: string
mode: mode:
type: string type: string
enum: [Off, Tty, File, Null] enum: [Off, Tty, File, None]
iommu: iommu:
type: boolean type: boolean
default: false default: false