Introduces more tests for transformModuleFilesToModel by running the existing semantic validation suite against it by slightly editing the DSL and using as a single file module.
62c656dbaad0798de64947331ac4f8e0f20a4c6a - Sets up the testing
9dd3d63d512bf56a976fbc3b0ff7572c9501a2eb - Copies the fix from #219
7c1e36ce2c9cf92ea69fe33aeeb96fc30e8a5c0f - Handles the missed duplicates errors as this was already being handled by the code in transformModuleFilesToModel, I've removed this from the transform code and instead we're mapping the errors from the validate function as I think realistically we want to try and perform as little validation in transform as possible.
[ ] 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
Introduces more tests for
transformModuleFilesToModel
by running the existing semantic validation suite against it by slightly editing the DSL and using as a single file module.transformModuleFilesToModel
, I've removed this from the transform code and instead we're mapping the errors from the validate function as I think realistically we want to try and perform as little validation in transform as possible.References
Review Checklist
main