Skip to content

Commit

Permalink
Tools: Do not emit __field_text in JSON parameter documentation
Browse files Browse the repository at this point in the history
__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
  • Loading branch information
WickedShell committed May 30, 2024
1 parent 513938b commit 921f841
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tools/autotest/param_metadata/jsonemit.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ def emit(self, g):
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__:
Expand Down

0 comments on commit 921f841

Please sign in to comment.