Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JsonGen] Fix text tag in docs #107

Merged
merged 2 commits into from
Jul 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -180,7 +178,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