diff --git a/Cargo.toml b/Cargo.toml index d71e23f..0c9f92c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "amp-common" description = "Rust libraries shared across Amphitheatre components and libraries" -version = "0.9.1" +version = "0.9.2" edition = "2021" license = "Apache-2.0" homepage = "https://amphitheatre.app" @@ -29,7 +29,7 @@ toml = "0.8.12" tracing = "0.1.40" ureq = { version = "2.9.6", features = ["json"] } url = "2.5.0" -utoipa = { version = "4.2.0", features = ["axum_extras", "uuid", "chrono"] } +utoipa = { version = "5.0.0", features = ["axum_extras", "uuid", "chrono", "macros"] } validator = { version = "0.18.0", features = ["derive"] } [dev-dependencies] diff --git a/src/sync/event_kinds.rs b/src/sync/event_kinds.rs index bd5f8fc..64e0d89 100644 --- a/src/sync/event_kinds.rs +++ b/src/sync/event_kinds.rs @@ -15,9 +15,10 @@ use notify::event::{CreateKind, DataChange, MetadataKind, ModifyKind, RemoveKind}; use notify::EventKind::{self, Create, Modify, Remove}; use serde::{Deserialize, Serialize}; +use utoipa::ToSchema; /// EventKinds -#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)] +#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize, ToSchema)] pub enum EventKinds { /// for initial file synchronization, full override. Overwrite,