openfga / language

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

feat(java): support validating a json based authorization model #245

Closed ewanharris closed 3 weeks ago

ewanharris commented 2 months ago

Description

Implements a validateJson function for the Java package and then adds the JSON only errors that we have added since the Java package was written. It also updates the java-sdk to latest to pull in the modular models metadata

Naming wise, I stuck with the existing JS function names of validateDsl and validateJson, I also renamed the overall class to ModelValidator as it's no longer solely serving the purpose of DSL validation.

References

Review Checklist