openfga / language

Grammar for the OpenFGA modeling language
https://openfga.dev
Apache License 2.0
15 stars 7 forks source link

feat(js,go): transform to dsl with comments #206

Closed ewanharris closed 3 months ago

ewanharris commented 3 months ago

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