| Index: tools/json_schema_compiler/h_generator.py
|
| diff --git a/tools/json_schema_compiler/h_generator.py b/tools/json_schema_compiler/h_generator.py
|
| index 35e82480649a605dd6da518822dba4d1611a6e30..9ce2868d3843ec5785ac536a9af7ab47daddbe13 100644
|
| --- a/tools/json_schema_compiler/h_generator.py
|
| +++ b/tools/json_schema_compiler/h_generator.py
|
| @@ -179,6 +179,11 @@ class HGenerator(object):
|
| c.Substitute({'classname': classname, 'item_type':
|
| self._cpp_type_generator.GetType(type_.item_type,
|
| wrap_optional=True)})
|
| + elif type_.type_ == PropertyType.STRING:
|
| + if type_.description:
|
| + c.Comment(type_.description)
|
| + c.Append('typedef std::string %(classname)s;')
|
| + c.Substitute({'classname': classname})
|
| else:
|
| if type_.description:
|
| c.Comment(type_.description)
|
|
|