Update .changeset/kind-bees-suffer.md

Co-authored-by: MT Lewis <mtlewis@users.noreply.github.com>
Signed-off-by: Harrison Hogg <7130591+HHogg@users.noreply.github.com>
Signed-off-by: Harry Hogg <hhogg@spotify.com>
This commit is contained in:
Harrison Hogg
2022-10-03 13:34:29 +01:00
committed by Harry Hogg
parent 708ff4761a
commit 2c37e5efe8
+1 -1
View File
@@ -6,7 +6,7 @@
'@backstage/plugin-playlist-backend': minor
---
**BREAKING**: When defining permission rules, they must now also include a ZodSchema that details the parameters the rule expects. This has been added to help better describe the parameters in the response of the metadata endpoint and to validate the parameters before a rule is executed.
**BREAKING**: When defining permission rules, it's now necessary to provide a ZodSchema that specifies the parameters the rule expects. This has been added to help better describe the parameters in the response of the metadata endpoint and to validate the parameters before a rule is executed.
To help with this, we have also made a change to the API of permission rules. Before, the permission rules `toQuery` and `apply` signature expected parameters to be seprate arguments, like so...