File tree Expand file tree Collapse file tree 2 files changed +19
-4
lines changed
packages/cw-schema-codegen Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -35,12 +35,11 @@ fn expand_node_name<'a>(
35
35
format ! ( "[{}]" , items) . into ( )
36
36
}
37
37
cw_schema:: NodeType :: Enum { .. } => node. name . as_ref ( ) . into ( ) ,
38
-
39
38
cw_schema:: NodeType :: Decimal { .. } => "decimal.Decimal" . into ( ) ,
40
39
cw_schema:: NodeType :: Address => "str" . into ( ) ,
41
- cw_schema:: NodeType :: Checksum => todo ! ( ) ,
42
- cw_schema:: NodeType :: HexBinary => todo ! ( ) ,
43
- cw_schema:: NodeType :: Timestamp => todo ! ( ) ,
40
+ cw_schema:: NodeType :: Checksum => "str" . into ( ) ,
41
+ cw_schema:: NodeType :: HexBinary => "str" . into ( ) ,
42
+ cw_schema:: NodeType :: Timestamp => "str" . into ( ) ,
44
43
cw_schema:: NodeType :: Unit => "None" . into ( ) ,
45
44
}
46
45
}
Original file line number Diff line number Diff line change
1
+ -- -
2
+ source : packages / cw - schema - codegen / tests / python_tpl .rs
3
+ expression : output
4
+ snapshot_kind : text
5
+ -- -
6
+ # This code is @generated by cw - schema - codegen . Do not modify this manually .
7
+
8
+ import typing
9
+ import decimal
10
+ from pydantic import BaseModel , RootModel
11
+
12
+
13
+
14
+ class UnitStructure (RootModel ):
15
+ ''''''
16
+ root : None
You can’t perform that action at this time.
0 commit comments