Skip to content

Commit 9a1f9c5

Browse files
authored
Add NanoId type support (#31)
1 parent 75c3a35 commit 9a1f9c5

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/libs/ws/headers.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ fn parse_ty(ty: &Type, value: &str) -> Result<serde_json::Value> {
9898
Type::Enum { .. } => serde_json::Value::String(value.to_string()),
9999
Type::EnumRef { .. } => serde_json::Value::String(value.to_string()),
100100
Type::UUID => serde_json::Value::String(value.to_string()),
101+
Type::NanoId { .. } => serde_json::Value::String(value.to_string()),
101102
Type::Optional(ty) => parse_ty(ty, value)?,
102103
Type::BlockchainAddress => serde_json::Value::String(value.to_string()),
103104
ty => bail!("Not implemented {:?}", ty),

src/model/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ pub enum Type {
8888
String,
8989
Bytea,
9090
UUID,
91+
NanoId { len: usize },
9192
IpAddr,
9293
Struct {
9394
name: String,

0 commit comments

Comments
 (0)