Index: tools/json_schema_compiler/model.py |
diff --git a/tools/json_schema_compiler/model.py b/tools/json_schema_compiler/model.py |
index e377295cd1529f4f0001f7e1ef978adb837882f3..753274f49f8544e2a90fbe439d73b17fdb109761 100644 |
--- a/tools/json_schema_compiler/model.py |
+++ b/tools/json_schema_compiler/model.py |
@@ -81,6 +81,11 @@ class Type(object): |
from_client=True) |
elif json.get('type') == 'string': |
self.type_ = PropertyType.STRING |
+ elif 'enum' in json: |
+ self.enum_values = [] |
+ for value in json['enum']: |
+ self.enum_values.append(value) |
+ self.type_ = PropertyType.ENUM |
else: |
if not ( |
'properties' in json or |