Skip to content

Commit

Permalink
Rename Warrants field to Checks
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleyphu committed Jul 15, 2024
1 parent b6d196a commit 8d68782
Show file tree
Hide file tree
Showing 5 changed files with 178 additions and 152 deletions.
4 changes: 2 additions & 2 deletions pkg/fga/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ type CheckOpts struct {

type CheckBatchOpts struct {
// List of warrants to check.
Warrants []WarrantCheck `json:"warrants"`
Checks []WarrantCheck `json:"warrants"`

// Flag to include debug information in the response.
Debug bool `json:"debug,omitempty"`
Expand Down Expand Up @@ -818,7 +818,7 @@ func (c *Client) CheckBatch(ctx context.Context, opts CheckBatchOpts) ([]CheckRe

checkOpts := CheckOpts{
Op: "batch",
Checks: opts.Warrants,
Checks: opts.Checks,
Debug: opts.Debug,
WarrantToken: opts.WarrantToken,
}
Expand Down
Loading

0 comments on commit 8d68782

Please sign in to comment.