Skip to content

Commit

Permalink
fix: correct type for contextual tuples in python
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanharris committed Nov 6, 2024
1 parent 1e438e7 commit 7c400a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Docs/SnippetViewer/CheckRequestViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ body = ClientCheckRequest(
contextual_tuples=[
${contextualTuples
.map(
(tuple) => `ClientTupleKey(user="${tuple.user}", relation="${tuple.relation}", object="${tuple.object}")`,
(tuple) => `ClientTuple(user="${tuple.user}", relation="${tuple.relation}", object="${tuple.object}")`,
)
.join(',\n ')}
],`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ body = ClientListObjectsRequest(
contextual_tuples=[
${contextualTuples
.map(
(tuple) => `ClientTupleKey(user="${tuple.user}", relation="${tuple.relation}", object="${tuple.object}")`,
(tuple) => `ClientTuple(user="${tuple.user}", relation="${tuple.relation}", object="${tuple.object}")`,
)
.join(',\n ')}
],`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ var response = await fgaClient.ListUsers(body, options);
contextual_tuples=[
${contextualTuples
.map(
(tuple) => `ClientTupleKey(user="${tuple.user}", relation="${tuple.relation}", object="${tuple.object}")`,
(tuple) => `ClientTuple(user="${tuple.user}", relation="${tuple.relation}", object="${tuple.object}")`,
)
.join(',\n ')}
],`
Expand Down

0 comments on commit 7c400a4

Please sign in to comment.