Skip to content

Commit

Permalink
Remove nullish fields before validating responses (#7386)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Feb 10, 2025
1 parent 70b98e5 commit 705f46f
Show file tree
Hide file tree
Showing 271 changed files with 1,234 additions and 1,165 deletions.
100 changes: 60 additions & 40 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ time = "0.3.36"
tokio = "1.37.0"
tracing = "0.1.40"
tracing-subscriber = "0.3.18"
ts-rs = { version = "9.0.1", features = ["no-serde-warnings"] }
ts-rs = { version = "10.1.0", features = ["no-serde-warnings"] }
url = "2.5.2"
web-push = { version = "0.10.1", default-features = false, features = [
"hyper-client",
Expand All @@ -263,4 +263,4 @@ debug = false
[patch.crates-io]
ic-cdk-macros = { git = "https://github.com/hpeebles/cdk-rs", rev = "19f04d7d996d77b1c2f938e4c7e1efd8e3f12910" }
rmp-serde = { git = "https://github.com/hpeebles/msgpack-rust", rev = "832a3f48e67eea56c869715ae6e1045583dd011b" }
ts-rs = { git = "https://github.com/hpeebles/ts-rs", rev = "c8f7385697df0764fca3b5d7b8e22b967fb16c10" }
ts-rs = { git = "https://github.com/hpeebles/ts-rs", rev = "c584e25ce28fa27b64964c208725b6bc100fbdac" }
5 changes: 3 additions & 2 deletions backend/libraries/types/src/channel_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ use serde::de::{Error, Visitor};
use serde::{Deserialize, Deserializer, Serialize};
use std::fmt::{Display, Formatter};
use std::str::FromStr;
use ts_rs::TS;
use ts_export::ts_export;

#[derive(Serialize, CandidType, TS, Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)]
#[ts_export]
#[derive(Serialize, CandidType, Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)]
#[ts(as = "u128")]
pub struct ChannelId(u32);

Expand Down
Loading

0 comments on commit 705f46f

Please sign in to comment.