| Index: tools/json_schema_compiler/cc_generator.py
|
| diff --git a/tools/json_schema_compiler/cc_generator.py b/tools/json_schema_compiler/cc_generator.py
|
| index 9bfd3e6c4e9b28f8686341cd352a0620829d4d07..059166c3477d27ab09111a40fc778237ce8b5430 100644
|
| --- a/tools/json_schema_compiler/cc_generator.py
|
| +++ b/tools/json_schema_compiler/cc_generator.py
|
| @@ -233,6 +233,11 @@ class _Generator(object):
|
| else:
|
| raise TypeError(t)
|
|
|
| + if type_.property_type == PropertyType.CHOICES:
|
| + for choice in type_.choices:
|
| + prop_name = 'as_%s' % choice.unix_name
|
| + props.append(move_str % (prop_name, prop_name))
|
| +
|
| if (type_.property_type == PropertyType.OBJECT and
|
| type_.additional_properties is not None):
|
| if type_.additional_properties.property_type == PropertyType.ANY:
|
|
|