Index: tools/json_schema_compiler/compiler.py |
diff --git a/tools/json_schema_compiler/compiler.py b/tools/json_schema_compiler/compiler.py |
index feb354dedfd5a79d7b8cfa6478527d789adb86b9..c626f2f96c20570980c9b2637dcdae96c5128271 100755 |
--- a/tools/json_schema_compiler/compiler.py |
+++ b/tools/json_schema_compiler/compiler.py |
@@ -59,6 +59,10 @@ def GenerateSchema(generator_name, |
# If compiling the C++ model code, delete 'nocompile' nodes. |
if generator_name == 'cpp': |
api_def = json_schema.DeleteNodes(api_def, 'nocompile') |
+ |
+ # Delete all 'nodefine' nodes. They are only for documentation. |
+ api_def = json_schema.DeleteNodes(api_def, 'nodefine') |
+ |
api_defs.extend(api_def) |
api_model = Model(allow_inline_enums=False) |