The manifest file name in Modular Authorization Models #309
-
I have noticed that if I do not name the manifest file as fga (like in fga.mod), VS Code validation does not run for any modules. Is this expected? For example, in this sample store, if you change fga.mod to XYZ.mod and do some breaking change like changing the type name in core to user2, the errors are not shown by VS Code unless you change the manifest file back to fga.mod. https://github.com/openfga/sample-stores/tree/main/stores/modular |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @velmohan, Yes, we require that the manifest file to be named exactly Do you have a usecase that requires you to rename this file? |
Beta Was this translation helpful? Give feedback.
Hey @velmohan,
Yes, we require that the manifest file to be named exactly
fga.mod
, similar to how Go requires thego.mod
name or JS/npm requirespackage.json
. By having a known name it means that we can simplify the validation and lookup of this file/modular models in general.Do you have a usecase that requires you to rename this file?