Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

with error code validation_error error message: modular models (schema version 1.2) are not supported #1524

Closed
6 tasks
xuanlongvts opened this issue Apr 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@xuanlongvts
Copy link

xuanlongvts commented Apr 10, 2024

Checklist

  • I have looked into the README and have not found a suitable solution or answer.
  • I have looked into the documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have upgraded to the latest version of OpenFGA and the issue still persists.
  • I have searched the OpenFGA Community and have not found a suitable solution or answer.
  • I agree to the terms within the OpenFGA Code of Conduct.

Description

when i run: fga model write --store-id=$FGA_STORE_ID --file fga.mod

this is the tutorial: https://openfga.dev/docs/modeling/modular-models

Then, it happ: with error code validation_error error message: modular models (schema version 1.2) are not supported

Expectation

I think it genegrated a dsl file

Reproduction

https://github.com/xuanlongvts/authen-autho/tree/main/open-fga/16_modular_models

Store data

No response

OpenFGA version

latest

How are you running OpenFGA?

As a binary

What datastore are you using?

In-Memory

OpenFGA Flags

fga model write --store-id=$FGA_STORE_ID --file fga.mod

Logs

Error: failed to write model due to WriteAuthorizationModel validation error for POST WriteAuthorizationModel with body {"code":"validation_error","message":"modular models (schema version 1.2) are not supported"}
with error code validation_error error message: modular models (schema version 1.2) are not supported

@xuanlongvts xuanlongvts added the bug Something isn't working label Apr 10, 2024
@rhamzeh
Copy link
Member

rhamzeh commented Apr 10, 2024

As of v1.5.2, support for schema 1.2 is still experimental and you need to run the server with the following flag to enable it:
OPENFGA_EXPERIMENTALS=enable-modular-models

See the release notes: https://github.com/openfga/openfga/releases/tag/v1.5.1

Update: https://github.com/openfga/openfga/releases/tag/v1.5.3 enables it by default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants