@@ -10,7 +10,7 @@ For some use cases, you may want to define custom [rules](./concepts.md#resource
|
||||
|
||||
Plugins should export a rule factory that provides type-safety that ensures compatibility with the plugin's backend. The catalog plugin exports `createCatalogPermissionRule` from `@backstage/plugin-catalog-backend/alpha` for this purpose. Note: the `/alpha` path segment is temporary until this API is marked as stable. For this example, we'll define the rule and create a condition in `packages/backend/src/plugins/permission.ts`.
|
||||
|
||||
We use Zod in our example to create our params schema. To install, run:
|
||||
We use Zod in our example below. To install, run:
|
||||
|
||||
```bash
|
||||
yarn workspace backend add zod
|
||||
|
||||
Reference in New Issue
Block a user