| Index: tools/json_schema_compiler/idl_schema.py
|
| diff --git a/tools/json_schema_compiler/idl_schema.py b/tools/json_schema_compiler/idl_schema.py
|
| index 44a4a55eaec8e06523919a621c9e450aeaa6637e..2e24d5b8e7e163faa5dfdda09ce3ad2a27edd49c 100644
|
| --- a/tools/json_schema_compiler/idl_schema.py
|
| +++ b/tools/json_schema_compiler/idl_schema.py
|
| @@ -292,7 +292,13 @@ class Enum(object):
|
| enum = []
|
| for node in self.node.children:
|
| if node.cls == 'EnumItem':
|
| - enum.append(node.GetName())
|
| + enum_value = {'name': node.GetName()}
|
| + for child in node.children:
|
| + if child.cls == 'Comment':
|
| + enum_value['description'] = ProcessComment(child.GetName())[0]
|
| + else:
|
| + raise ValueError('Did not process %s %s' % (child.cls, child))
|
| + enum.append(enum_value)
|
| elif node.cls == 'Comment':
|
| self.description = ProcessComment(node.GetName())[0]
|
| else:
|
|
|