Skip to content

Merge OpenFGA modules and fga.mod like openfga/language develop - #7

Open
LucaCappelletti94 wants to merge 1 commit into
d2-validationfrom
d2-modules
Open

LucaCappelletti94 wants to merge 1 commit into
d2-validationfrom
d2-modules

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Owner

Adds module support matching openfga/language develop. parse_mod_file reads an fga.mod file with every value's source position, merge_modules combines module files into one model and reports conflicts the way the Go transformer does, and the writer can annotate each type and condition with the module and file it came from. The fga.mod cases from openfga/language's conformance data pass, alongside extra cases checked against the Go transformer.

YAML comes from saphyr-parser 0.4.0, the first release that places a block scalar at its indicator as Go's yaml.v3 does.

@coderabbitai

coderabbitai Bot commented Nov 21, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Central YAML; Path: .coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: fdf50493-0c1d-422a-80d8-542172ea64a5

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@codecov

codecov Bot commented Nov 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (0b5273f) to head (b5b9b02).

Additional details and impacted files
@@               Coverage Diff                @@
##           d2-validation        #7    +/-   ##
================================================
  Coverage         100.00%   100.00%            
================================================
  Files                 10        12     +2     
  Lines               1301      2062   +761     
================================================
+ Hits                1301      2062   +761     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant