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