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.
[ ] I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
[x] The correct base branch is being used, if not main
[ ] I have added tests to validate that the change in functionality is working as expected
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 metadataNaming wise, I stuck with the existing JS function names of
validateDsl
andvalidateJson
, I also renamed the overall class toModelValidator
as it's no longer solely serving the purpose of DSL validation.References
Review Checklist
main