| Index: tools/json_schema_compiler/model.py
|
| diff --git a/tools/json_schema_compiler/model.py b/tools/json_schema_compiler/model.py
|
| index 29c54a08130a3ddc2b54170fec342593abd47229..d6d11f125b327e817d81af3cfb40fd7ec0ddedb4 100644
|
| --- a/tools/json_schema_compiler/model.py
|
| +++ b/tools/json_schema_compiler/model.py
|
| @@ -79,13 +79,13 @@ class Type(object):
|
| self.item_type = Property(self, name + "Element", json['items'],
|
| from_json=True,
|
| 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
|
| + elif json.get('type') == 'string':
|
| + self.type_ = PropertyType.STRING
|
| else:
|
| if not (
|
| 'properties' in json or
|
|
|