Skip to content

Commit

Permalink
fix: export Entry in snake_case
Browse files Browse the repository at this point in the history
  • Loading branch information
kod-kristoff committed Nov 26, 2024
1 parent 81ced9e commit 22cced1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/karp-lex/src/application/queries/entries.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::DateTime;

#[derive(Debug, Clone, serde::Deserialize, serde::Serialize)]
#[serde(rename_all = "camelCase")]
// #[serde(rename_all = "camelCase")]
pub struct EntryDto<E> {
// #[serde(alias = "entity_id")]
#[serde(skip_serializing_if = "Option::is_none")]
Expand Down
2 changes: 1 addition & 1 deletion libs/karp-lex/src/domain/entities/entry.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::DateTime;

#[derive(Debug, Clone, serde::Deserialize, serde::Serialize)]
#[serde(rename_all = "camelCase")]
// #[serde(rename_all = "camelCase")]
pub struct Entry<E> {
id: ulid::Ulid,
last_modified_by: String,
Expand Down

0 comments on commit 22cced1

Please sign in to comment.