Skip to content

Commit

Permalink
[JsonGen] Fix text tag in docs (#107)
Browse files Browse the repository at this point in the history
Co-authored-by: MFransen69 <[email protected]>
  • Loading branch information
sebaszm and MFransen69 committed Jul 4, 2024
1 parent f4ac307 commit 2d6051c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions JsonGenerator/source/documentation_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ def _TableObj(name, obj, parentName="", parent=None, prefix="", parentOptional=F
"required" in parent
and name not in parent["required"]) or ("required" in parent and len(parent["required"]) == 0)

name = (name if not "@originalname" in obj else obj["@originalname"].lower())

# include information about enum values in description
enum = ""
if "enum" in obj and "ids" in obj:
Expand Down Expand Up @@ -182,7 +180,7 @@ def _TableObj(name, obj, parentName="", parent=None, prefix="", parentOptional=F
log.Warn("'%s': no 'required' field present (assuming all members optional)" % name)

for pname, props in obj["properties"].items():
_TableObj(pname, props, parentName + "/" + (name if not "@originalname" in props else props["@originalname"].lower()), obj, prefix, False)
_TableObj(pname, props, parentName + "/" + name, obj, prefix, False)
elif obj["type"] == "array":
_TableObj("", obj["items"], parentName + "/" + name, obj, (prefix + "[#]") if name else "", optional)

Expand Down

0 comments on commit 2d6051c

Please sign in to comment.