| Index: tools/json_schema_compiler/cpp_bundle_generator.py
|
| diff --git a/tools/json_schema_compiler/cpp_bundle_generator.py b/tools/json_schema_compiler/cpp_bundle_generator.py
|
| index 5bc5a7c56ea290958823a3449f7a8769a103358a..89501e2cf14b2c086fd3c2172475b74367e625fa 100644
|
| --- a/tools/json_schema_compiler/cpp_bundle_generator.py
|
| +++ b/tools/json_schema_compiler/cpp_bundle_generator.py
|
| @@ -326,9 +326,8 @@ class _SchemasCCGenerator(object):
|
| c.Append('namespace {')
|
| for api in self._bundle._api_defs:
|
| namespace = self._bundle._model.namespaces[api.get('namespace')]
|
| - # JSON parsing code expects lists of schemas, so dump a singleton list.
|
| - json_content = json.dumps([_PrefixSchemaWithNamespace(
|
| - _RemoveUnneededFields(api))],
|
| + json_content = json.dumps(_PrefixSchemaWithNamespace(
|
| + _RemoveUnneededFields(api)),
|
| separators=(',', ':'))
|
| # Escape all double-quotes and backslashes. For this to output a valid
|
| # JSON C string, we need to escape \ and ". Note that some schemas are
|
|
|