Skip to content

Commit 6e406d5

Browse files
doc: add serde and utoipa attributes
1 parent 807536c commit 6e406d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
//! constant_string!(NotFoundErrorCode, NOT_FOUND_ERROR_CODE, "notFound");
1515
//!
1616
//! #[derive(Debug, Default, Deserialize, Serialize, ToSchema)]
17+
//! #[serde(rename_all = "camelCase")]
1718
//! struct NotFoundError {
19+
//! #[schema(inline)]
1820
//! code: NotFoundErrorCode,
1921
//! }
2022
//! ```

0 commit comments

Comments
 (0)