From 15bb86ded9846e09e3f6536a4fd8b0c79cef2035 Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Thu, 30 May 2024 09:30:59 -0700 Subject: [PATCH] Tools: Do not emit __field_text in JSON parameter documentation __field_text is basically the raw parsed text, and is used internally but as far as I can tell it was never meant for external usage, the JSON emitter already removes other fields that were not intended to be there. By including the __field_text entry we were doubling the size of the emitted documentation --- Tools/autotest/param_metadata/jsonemit.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tools/autotest/param_metadata/jsonemit.py b/Tools/autotest/param_metadata/jsonemit.py index 8352b68495..0ff31366a0 100644 --- a/Tools/autotest/param_metadata/jsonemit.py +++ b/Tools/autotest/param_metadata/jsonemit.py @@ -62,6 +62,10 @@ class JSONEmit(Emit): except KeyError: pass + # Remove __field_text key + if '__field_text' in param.__dict__: + param.__dict__.pop('__field_text') + # Get range section if available range_json = {} if 'Range' in param.__dict__: