Skip to content

Commit

Permalink
fix: it should set format to json and surround value in single quotes (
Browse files Browse the repository at this point in the history
  • Loading branch information
Vic-Dev authored Jun 13, 2024
1 parent f934763 commit 0fd3aae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface WriteAuthzModelViewerOpts {
}

function writeAuthZModelViewerCli(authorizationModel: AuthorizationModel): string {
return `fga model write --store-id=\${FGA_STORE_ID} ${JSON.stringify(authorizationModel)}`;
return `fga model write --store-id=\${FGA_STORE_ID} --format=json '${JSON.stringify(authorizationModel)}'`;
}

function writeAuthZModelViewerCurl(authorizationModel: AuthorizationModel): string {
Expand Down

0 comments on commit 0fd3aae

Please sign in to comment.