diff --git a/src/generator/lib/__tests__/util_test.py b/src/generator/lib/__tests__/util_test.py index eb34be7e1ac..feea3d096cf 100644 --- a/src/generator/lib/__tests__/util_test.py +++ b/src/generator/lib/__tests__/util_test.py @@ -104,7 +104,7 @@ def test_to_rust_type(self): property_name = 'details' property_value = schemas[class_name]['properties'][property_name] rust_type = to_rust_type(schemas, class_name, property_name, property_value, allow_optionals=True) - self.assertEqual(rust_type, 'Option>>') + self.assertEqual(rust_type, 'Option>>') def main(): diff --git a/src/generator/lib/types.py b/src/generator/lib/types.py index fcf2bbd608e..a816886b6d3 100644 --- a/src/generator/lib/types.py +++ b/src/generator/lib/types.py @@ -30,7 +30,7 @@ def chrono_date(y=None, m=None, d=None): 'double': Base("f64"), 'float': Base("f32"), 'int32': Base("i32"), - 'any': Base("String"), # TODO: Figure out how to handle it. It's 'interface' in Go ... + 'any': Base("json::Value"), 'int64': Base("i64"), 'uint64': Base("u64"), 'array': Vec(None),