From 6e406d5b6bca777363555b1c4a96ae0f4501e30e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABlle=20Huisman?= Date: Sun, 15 Feb 2026 13:48:50 +0100 Subject: [PATCH] doc: add serde and utoipa attributes --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 22a4803..15aae8b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,7 +14,9 @@ //! constant_string!(NotFoundErrorCode, NOT_FOUND_ERROR_CODE, "notFound"); //! //! #[derive(Debug, Default, Deserialize, Serialize, ToSchema)] +//! #[serde(rename_all = "camelCase")] //! struct NotFoundError { +//! #[schema(inline)] //! code: NotFoundErrorCode, //! } //! ```