Skip to content

Commit d581272

Browse files
committed
fix: add vcpu_features and kvm_capabilites to swagger
These fields were added in firecracker-microvm#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]>
1 parent 79bf129 commit d581272

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/firecracker/swagger/firecracker.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ definitions:
840840
default: "None"
841841

842842
CpuConfig:
843-
type: string
843+
type: object
844844
description:
845845
The CPU configuration template defines a set of bit maps as modifiers of flags accessed by register
846846
to be disabled/enabled for the microvm.
@@ -854,6 +854,12 @@ definitions:
854854
reg_modifiers:
855855
type: object
856856
description: A collection of registers to be modified. (aarch64)
857+
vcpu_features:
858+
type: object
859+
description: A collection of vcpu features to be modified. (aarch64)
860+
kvm_capabilities:
861+
type: object
862+
description: A collection of kvm capabilities to be modified. (aarch64)
857863

858864
Drive:
859865
type: object

0 commit comments

Comments
 (0)