| Index: tools/json_schema_compiler/model.py
|
| diff --git a/tools/json_schema_compiler/model.py b/tools/json_schema_compiler/model.py
|
| index dd68e9b1056f7e84c9aab6d997a1a3730a22030b..fd136c82e300cc7c289774313be71c0762a8a3de 100644
|
| --- a/tools/json_schema_compiler/model.py
|
| +++ b/tools/json_schema_compiler/model.py
|
| @@ -105,6 +105,7 @@ class Namespace(object):
|
| self.unix_name = UnixName(self.name)
|
| self.source_file = source_file
|
| self.source_file_dir, self.source_file_filename = os.path.split(source_file)
|
| + self.short_filename = os.path.basename(source_file).split('.')[0]
|
| self.parent = None
|
| self.platforms = _GetPlatforms(json)
|
| toplevel_origin = Origin(from_client=True, from_json=True)
|
| @@ -117,6 +118,10 @@ class Namespace(object):
|
| else:
|
| self.compiler_options = {}
|
| self.documentation_options = json.get('documentation_options', {})
|
| + if 'allow_custom_filename' in json:
|
| + self.allow_custom_filename = json['allow_custom_filename']
|
| + else:
|
| + self.allow_custom_filename = False
|
|
|
|
|
| class Origin(object):
|
| @@ -187,6 +192,7 @@ class Type(object):
|
| elif 'enum' in json and json_type == 'string':
|
| self.property_type = PropertyType.ENUM
|
| self.enum_values = [EnumValue(value) for value in json['enum']]
|
| + self.cpp_omit_enum_type = 'cpp_omit_enum_type' in json
|
| elif json_type == 'any':
|
| self.property_type = PropertyType.ANY
|
| elif json_type == 'binary':
|
|
|