Always normalise vaultId and trim token

This commit is contained in:
Andras Schmelczer 2025-04-07 22:29:23 +01:00
commit 74a8060246
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -16,12 +16,13 @@ use crate::{
},
},
errors::{SyncServerError, client_error, server_error},
utils::sanitize_path,
utils::{normalize::normalize, sanitize_path::sanitize_path},
};
// This is required for aide to infer the path parameter types and names
#[derive(Deserialize, JsonSchema)]
pub struct CreateDocumentPathParams {
#[serde(deserialize_with = "normalize")]
vault_id: VaultId,
}