Skip to content

Commit

Permalink
fix: add vcpu_features and kvm_capabilites to swagger
Browse files Browse the repository at this point in the history
These fields were added in #3967 but the Swagger API definition was not
updated. This patch fixes the API definition.
Also, the field type is changed from "string" to "object", as it has
properties and thus can't be a string.

Signed-off-by: Riccardo Mancini <[email protected]>
  • Loading branch information
Manciukic authored and ShadowCurse committed Nov 21, 2024
1 parent f2ef491 commit 8f48d3d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/firecracker/swagger/firecracker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ definitions:
default: "None"

CpuConfig:
type: string
type: object
description:
The CPU configuration template defines a set of bit maps as modifiers of flags accessed by register
to be disabled/enabled for the microvm.
Expand All @@ -854,6 +854,12 @@ definitions:
reg_modifiers:
type: object
description: A collection of registers to be modified. (aarch64)
vcpu_features:
type: object
description: A collection of vcpu features to be modified. (aarch64)
kvm_capabilities:
type: object
description: A collection of kvm capabilities to be modified. (aarch64)

Drive:
type: object
Expand Down

0 comments on commit 8f48d3d

Please sign in to comment.