firecracker: Fix yaml definition

The upstream yaml definition has a formatting issue. Fix the
indentation to ensure that swagger can generate the code.

Signed-off-by: Manohar Castelino <manohar.r.castelino@intel.com>
This commit is contained in:
Manohar Castelino 2019-06-18 16:55:53 -07:00
parent 62a715a330
commit 289df4da13

View File

@ -354,38 +354,38 @@ paths:
schema:
$ref: "#/definitions/Error"
/vsocks/{id}:
put:
summary: Creates new vsock with ID specified by the id parameter.
description:
If the vsock device with the specified ID already exists, its body will
be updated based on the new input. May fail if update is not possible.
operationId: putGuestVsockByID
parameters:
- name: id
in: path
description: The id of the vsock device
required: true
type: string
- name: body
in: body
description: Guest vsock properties
required: true
schema:
$ref: "#/definitions/Vsock"
responses:
201:
description: Vsock created
204:
description: Vsock updated
400:
description: Vsock cannot be created due to bad input
schema:
$ref: "#/definitions/Error"
default:
description: Internal server error
schema:
$ref: "#/definitions/Error"
/vsocks/{id}:
put:
summary: Creates new vsock with ID specified by the id parameter.
description:
If the vsock device with the specified ID already exists, its body will
be updated based on the new input. May fail if update is not possible.
operationId: putGuestVsockByID
parameters:
- name: id
in: path
description: The id of the vsock device
required: true
type: string
- name: body
in: body
description: Guest vsock properties
required: true
schema:
$ref: "#/definitions/Vsock"
responses:
201:
description: Vsock created
204:
description: Vsock updated
400:
description: Vsock cannot be created due to bad input
schema:
$ref: "#/definitions/Error"
default:
description: Internal server error
schema:
$ref: "#/definitions/Error"
definitions:
BootSource:
@ -647,15 +647,15 @@ definitions:
description: The amount of milliseconds it takes for the bucket to refill.
minimum: 0
Vsock:
type: object
required:
- id
- guest_cid
properties:
id:
type: string
guest_cid:
type: integer
minimum: 3
description: Guest Vsock CID
Vsock:
type: object
required:
- id
- guest_cid
properties:
id:
type: string
guest_cid:
type: integer
minimum: 3
description: Guest Vsock CID