Skip to content

Commit

Permalink
fix: remove excluded user field from list_users (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-jeffery committed Jun 18, 2024
1 parent ae0f0bc commit a3c1727
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions server/src/openfga-yaml-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`));
}
}
}
}
}
}
Expand Down Expand Up @@ -993,13 +985,6 @@ const OPENFGA_YAML_SCHEMA: Schema = {
format: "user",
},
},
excluded_users: {
type: "array",
items: {
type: "string",
format: "user",
},
},
},
},
},
Expand Down

0 comments on commit a3c1727

Please sign in to comment.