You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We just released OpenFGA v0.3.0, our biggest release yet. There are some breaking changes, so please take note of them below. Try it out and let us know what you think 🙌
You can now write your models in the new DSL which the Playground and the syntax transformer can convert to the JSON syntax. Schema v1.1 allows for adding type restrictions to each assignable relation, and it can be used to indicate cases such as "The folder's parent must be a folder" (and so not a user or a document).
This change also comes with breaking changes to how * and <type>:* are treated:
<type>:* is interpreted differently according to the model version. v1.0 will interpret it as an object of type <type> and id *, whereas v1.1 will interpret is as all objects of type <type>.
* is still supported in v1.0 models, but not supported in v1.1 models. A validation error will be thrown when
used in checks or writes and it will be ignored when evaluating.
Additionally, the change to v1.1 models allows us to provide more consistent validation when writing the model instead of when issuing checks.
⚠️ Note that with this release models with schema version 1.0 are now considered deprecated, with the plan to drop support for them over the next couple of months, please migrate to version 1.1 when you can. Read more about migrating to the new syntax.
ListObjects changes
The response has changed to include the object type, for example:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello everybody 👋
We just released OpenFGA v0.3.0, our biggest release yet. There are some breaking changes, so please take note of them below. Try it out and let us know what you think 🙌
Changes in this release
Support for v1.1 JSON Schema
*
and<type>:*
are treated:<type>:*
is interpreted differently according to the model version. v1.0 will interpret it as an object of type<type>
and id*
, whereas v1.1 will interpret is as all objects of type<type>
.*
is still supported in v1.0 models, but not supported in v1.1 models. A validation error will be thrown whenused in checks or writes and it will be ignored when evaluating.
ListObjects changes
The response has changed to include the object type, for example:
to
We have also improved validation and fixed support for Contextual Tuples that were causing inaccurate responses to be returned.
ReadTuples deprecation
Beta Was this translation helpful? Give feedback.
All reactions