mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Fix OpenAPI definition of for lock granularity
Use CamelCase as per the existing definitions (which allows the removal of the serde transformation) Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
@@ -147,7 +147,6 @@ impl LockGranularity {
|
|||||||
/// image. Without a byte-range lock, some NFS implementations may treat the
|
/// image. Without a byte-range lock, some NFS implementations may treat the
|
||||||
/// entire file as exclusively locked and prevent such operations (e.g. NetApp).
|
/// entire file as exclusively locked and prevent such operations (e.g. NetApp).
|
||||||
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, serde::Deserialize, serde::Serialize)]
|
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, serde::Deserialize, serde::Serialize)]
|
||||||
#[serde(rename_all = "kebab-case")]
|
|
||||||
pub enum LockGranularityChoice {
|
pub enum LockGranularityChoice {
|
||||||
/// Byte-range lock covering [0, size).
|
/// Byte-range lock covering [0, size).
|
||||||
#[default]
|
#[default]
|
||||||
|
|||||||
@@ -945,8 +945,8 @@ components:
|
|||||||
|
|
||||||
LockGranularity:
|
LockGranularity:
|
||||||
type: string
|
type: string
|
||||||
enum: [byte-range, full]
|
enum: [ByteRange, Full]
|
||||||
default: byte-range
|
default: ByteRange
|
||||||
|
|
||||||
DiskConfig:
|
DiskConfig:
|
||||||
type: object
|
type: object
|
||||||
|
|||||||
Reference in New Issue
Block a user