Skip to content

Commit

Permalink
feat(jsonld): add wrapping @context tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Elodie Thiéblin committed Mar 19, 2024
1 parent 94399e1 commit c913ce4
Show file tree
Hide file tree
Showing 3 changed files with 2,782 additions and 2,778 deletions.
2 changes: 1 addition & 1 deletion aas_core_codegen/jsonld/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def _generate(
if len(errors) > 0:
return None, errors

return Stripped(json.dumps(json_ld_context, indent=2)), None
return Stripped(json.dumps({"@context":json_ld_context}, indent=2)), None


def execute(context: run.Context, stdout: TextIO, stderr: TextIO) -> int:
Expand Down
Loading

0 comments on commit c913ce4

Please sign in to comment.