api icon indicating copy to clipboard operation
api copied to clipboard

Fix JSON syntax error in BatchCheck documentation examples

Open coderabbitai[bot] opened this issue 3 months ago • 0 comments

Description

The BatchCheckRequest example in the BatchCheck API documentation contains invalid JSON due to missing commas after the object field in the tuple_key objects.

Issue Details

In the BatchCheck documentation, the example JSON is missing commas:

Current (invalid):

"tuple_key": {
  "object": "document:2021-budget"
  "relation": "reader",
  "user": "user:anne",
}

Expected (valid):

"tuple_key": {
  "object": "document:2021-budget",
  "relation": "reader",
  "user": "user:anne",
}

This occurs in both tuple examples in the BatchCheckRequest section.

Context

This issue was identified during review of https://github.com/openfga/dotnet-sdk/pull/120. The generated documentation in the .NET SDK reflects the upstream API specification, so the fix needs to be applied in this repository.

See comment: https://github.com/openfga/dotnet-sdk/pull/120#discussion_r2380256977

Requested by

@rhamzeh

coderabbitai[bot] avatar Sep 30 '25 05:09 coderabbitai[bot]