From a3c1727701de366ce6da02ef930cc47390f69316 Mon Sep 17 00:00:00 2001 From: Daniel Jeffery <1425457+d-jeffery@users.noreply.github.com> Date: Tue, 18 Jun 2024 14:34:18 -0700 Subject: [PATCH] fix: remove excluded user field from list_users (#258) --- server/src/openfga-yaml-schema.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/server/src/openfga-yaml-schema.ts b/server/src/openfga-yaml-schema.ts index 8d02240..89cc461 100644 --- a/server/src/openfga-yaml-schema.ts +++ b/server/src/openfga-yaml-schema.ts @@ -601,14 +601,6 @@ function validateListUsers( } } } - - if (listUsers.assertions[assertion].excluded_users) { - for (const excludedUser of listUsers.assertions[assertion].excluded_users) { - if (!tuples.some((tuple) => tuple.user === excludedUser)) { - errors.push(undefinedTypeTuple(excludedUser, instancePath + `/assertions/${assertion}/excluded_users`)); - } - } - } } } } @@ -993,13 +985,6 @@ const OPENFGA_YAML_SCHEMA: Schema = { format: "user", }, }, - excluded_users: { - type: "array", - items: { - type: "string", - format: "user", - }, - }, }, }, },