Replies: 2 comments 1 reply
-
This change will also make model changes less error prone. When I have several types that have the same definition, a change requires a lot of copy and paste. This is compounded when writing tests against the model. The test file grows exponentially with each asset. It would be nice to test a 'base' type in one place instead of repeating tests for each type. |
Beta Was this translation helpful? Give feedback.
-
This feature would be very useful. It would make the model declaration more DRY, making changes easy to track, review, and less error-prone. We have multiple database tables that need to be mapped to a concrete OpenFGA Cheers |
Beta Was this translation helpful? Give feedback.
-
In some applications resources always have the same structure, for example:
To make models smaller and easier to read, it would be useful to define a
template
orbase type
where you'd define the resource structure:It could be possible to add additional relations in a specific resource:
or maybe override a specific relation
Thoughts? Would you use this? How? If you can provide specific examples it would be very useful.
Beta Was this translation helpful? Give feedback.
All reactions