Adds support for including the module and file metadata when transforming JSON to DSL, as this will probably have opinions over the way we sort the pieces of a model please check out the two combined models below and if they do not match your expectation please make a comment about the expected changes.
[ ] I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
[x] The correct base branch is being used, if not main
[ ] I have added tests to validate that the change in functionality is working as expected
Description
Adds support for including the module and file metadata when transforming JSON to DSL, as this will probably have opinions over the way we sort the pieces of a model please check out the two combined models below and if they do not match your expectation please make a comment about the expected changes.
Simple - https://github.com/openfga/language/blob/feat/180-transform-with-comments/tests/data/transformer-module/00-simple-module/combined.fga More complex - https://github.com/openfga/language/blob/feat/180-transform-with-comments/tests/data/transformer-module/02-module-with-extends/combined.fga
In order to add this to Java we first need to release an SDK with the metadata changes.
References
Resolves #180 for JS and Go
Review Checklist
main