| 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 5ae50bc0c0c36e5faec00c78b7fce2ed29e9f8df..c5574a50e50f7fc51f881f14c005cbd53d6c47a5 100644
|
| --- a/tools/json_schema_compiler/h_generator.py
|
| +++ b/tools/json_schema_compiler/h_generator.py
|
| @@ -160,6 +160,13 @@ class HGenerator(object):
|
| .Append()
|
| )
|
| c.Eblock('}')
|
| + elif type_.type_ == PropertyType.ARRAY:
|
| + if type_.description:
|
| + c.Comment(type_.descriptions)
|
| + c.Append('typedef std::vector<%(item_type)s> %(classname)s;')
|
| + c.Substitute({'classname': classname, 'item_type':
|
| + self._cpp_type_generator.GetType(type_.item_type,
|
| + wrap_optional=True)})
|
| else:
|
| if type_.description:
|
| c.Comment(type_.description)
|
|
|