summaryrefslogtreecommitdiffstats
path: root/generator/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'generator/src/main.rs')
-rw-r--r--generator/src/main.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/generator/src/main.rs b/generator/src/main.rs
index 5d9d2c7..f69df2d 100644
--- a/generator/src/main.rs
+++ b/generator/src/main.rs
@@ -94,8 +94,10 @@ fn schema_type_name(
}
.to_string(),
Primitive::Integer => match schema.format.as_deref() {
- Some("int32") => "u32",
- Some("int64") => "u64",
+ Some("uint32") => "u32",
+ Some("uint64") => "u64",
+ Some("int32") => "i32",
+ Some("int64") => "i64",
_ => "u32",
}
.to_string(),