Rename schema to paramsSchema

Signed-off-by: Harry Hogg <hhogg@spotify.com>
This commit is contained in:
Harry Hogg
2022-10-06 09:36:54 +01:00
parent 26e5513c32
commit db63ce8b07
17 changed files with 28 additions and 28 deletions
@@ -284,7 +284,7 @@ describe('PermissionIntegrationClient', () => {
name: 'RULE_1',
description: 'Test rule 1',
resourceType: 'test-resource',
schema: z.object({
paramsSchema: z.object({
input: z.enum(['yes', 'no']),
}),
apply: (_resource, { input }) => input === 'yes',
@@ -297,7 +297,7 @@ describe('PermissionIntegrationClient', () => {
description: 'Test rule 2',
resourceType: 'test-resource',
schema: z.object({
paramsSchema: z.object({
input: z.enum(['yes', 'no']),
}),
apply: (_resource, { input }) => input === 'yes',