Skip to content

Validate OpenFGA models like openfga/language develop - #6

Open
LucaCappelletti94 wants to merge 1 commit into
d2-dsl-writerfrom
d2-validation
Open

LucaCappelletti94 wants to merge 1 commit into
d2-dsl-writerfrom
d2-validation

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Owner

openfga-language can now validate a model, from JSON with validate or from DSL with validate_dsl, which also reports line and column. It follows the Go validator on the openfga/language develop branch, and the conformance submodule moves to develop for that. Every unskipped case in dsl-semantic-validation-cases.yaml and json-validation-cases.yaml passes with the exact message, position and metadata, in the same order, and the extra tests take their expected output from the Go validator.

@coderabbitai

coderabbitai Bot commented Nov 19, 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: a9a23069-c88f-407b-9db2-671d9ae19e01

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 19, 2026

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files
@@               Coverage Diff                @@
##           d2-dsl-writer        #6    +/-   ##
================================================
  Coverage         100.00%   100.00%            
================================================
  Files                  5        10     +5     
  Lines                448      1301   +853     
================================================
+ Hits                 448      1301   +853     

☔ 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