Skip to content

Macro Rendering Error#

File: perception/autoware_probabilistic_occupancy_grid_map/README.md

KeyError: 'definitions'

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/mkdocs_macros/plugin.py", line 688, in render
    return md_template.render(**page_variables)
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/jinja2/environment.py", line 1304, in render
    self.environment.handle_exception()
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/jinja2/environment.py", line 939, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 29, in top-level template code
  File "/home/runner/work/autoware.universe/autoware.universe/mkdocs_macros.py", line 72, in json_to_markdown
    return format_json(data)
  File "/home/runner/work/autoware.universe/autoware.universe/mkdocs_macros.py", line 61, in format_json
    parameters = list(json_data["definitions"].values())[0]["properties"]
KeyError: 'definitions'