Index: chrome/common/extensions/docs/server2/api_data_source.py |
diff --git a/chrome/common/extensions/docs/server2/api_data_source.py b/chrome/common/extensions/docs/server2/api_data_source.py |
index a614a29c3fe81e1a416ace0695c4d744b2fb7e2f..f8c2402e4e12b9435a4c1956aea15526ff663bf4 100644 |
--- a/chrome/common/extensions/docs/server2/api_data_source.py |
+++ b/chrome/common/extensions/docs/server2/api_data_source.py |
@@ -343,9 +343,9 @@ class _JSCModel(object): |
elif type_.property_type == model.PropertyType.ARRAY: |
dst_dict['array'] = self._GenerateType(type_.item_type) |
elif type_.property_type == model.PropertyType.ENUM: |
- dst_dict['enum_values'] = [] |
- for enum_value in type_.enum_values: |
- dst_dict['enum_values'].append({'name': enum_value}) |
+ dst_dict['enum_values'] = [ |
+ {'name': value.name, 'description': value.description} |
+ for value in type_.enum_values] |
if len(dst_dict['enum_values']) > 0: |
dst_dict['enum_values'][-1]['last'] = True |
elif type_.instance_of is not None: |