Repository navigation
Write OpenFGA DSL from openfga-model - #5
LucaCappelletti94 wants to merge 2 commits into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## d2-pest-parser #5 +/- ##
=================================================
Coverage 100.00% 100.00%
=================================================
Files 4 5 +1
Lines 273 448 +175
=================================================
+ Hits 273 448 +175 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
91d3d21 to
ff93222
Compare
openfga-language can now write a single-file model back as DSL, byte for byte what the Go transformer writes, including its parenthesisation, direct-assignment-first ordering and blank lines. Every transformer case of openfga/language writes to its .fga file and parses back to the same model, and the JSON syntax cases fail with Go's exact messages.
One case departs from Go on purpose. A list or map condition parameter without an element type makes the Go writer panic, and here it returns a MissingGenericType error.