From 289df4da13fc44e94105a164e868687b8fcc9cef Mon Sep 17 00:00:00 2001 From: Manohar Castelino Date: Tue, 18 Jun 2019 16:55:53 -0700 Subject: [PATCH] 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 --- .../firecracker/firecracker-experimental.yaml | 88 +++++++++---------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/virtcontainers/pkg/firecracker/firecracker-experimental.yaml b/virtcontainers/pkg/firecracker/firecracker-experimental.yaml index cd4ba0ace9..1cb42891c1 100644 --- a/virtcontainers/pkg/firecracker/firecracker-experimental.yaml +++ b/virtcontainers/pkg/firecracker/firecracker-experimental.yaml @@ -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