Skip to content

Commit 1ad75ec

Browse files
committed
Add more custom types to go-gen
1 parent cf25c49 commit 1ad75ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/go-gen/src/schema.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,14 @@ pub fn documentation(schema: &SchemaObject) -> Option<String> {
259259
/// If the given type is not a special type, returns `None`.
260260
pub fn custom_type_of(ty: &str) -> Option<&str> {
261261
match ty {
262+
"Uint64" => Some("string"),
262263
"Uint128" => Some("string"),
263264
"Binary" => Some("[]byte"),
264265
"HexBinary" => Some("Checksum"),
265266
"Addr" => Some("string"),
266267
"Decimal" => Some("string"),
267268
"Decimal256" => Some("string"),
269+
"Timestamp" => Some("uint64"),
268270
_ => None,
269271
}
270272
}

0 commit comments

Comments
 (0)