Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
firecracker: Fix yaml definition
Browse files Browse the repository at this point in the history
The upstream yaml definition has a formatting issue. Fix the
indentation to ensure that swagger can generate the code.

Signed-off-by: Manohar Castelino <[email protected]>
  • Loading branch information
mcastelino committed Jun 18, 2019
1 parent 62a715a commit 289df4d
Showing 1 changed file with 44 additions and 44 deletions.
88 changes: 44 additions & 44 deletions virtcontainers/pkg/firecracker/firecracker-experimental.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit 289df4d

Please sign in to comment.