Skip to content

Commit 0a02932

Browse files
committed
refactor: handle changes to CheckError type
1 parent 99f7c27 commit 0a02932

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

openfga_sdk/models/check_error.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ class CheckError:
4040
}
4141

4242
attribute_map = {
43-
"input_error": "inputError",
44-
"internal_error": "internalError",
43+
"input_error": "input_error",
44+
"internal_error": "internal_error",
4545
"message": "message",
4646
}
4747

test/client/client_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2276,7 +2276,7 @@ async def test_batch_check_multiple_request(self, mock_request, mock_uuid):
22762276
"result": {
22772277
"fake-uuid": {
22782278
"error": {
2279-
"inputError": "validation_error",
2279+
"input_error": "validation_error",
22802280
"message": "type 'doc' not found"
22812281
}
22822282
}

test/sync/client/client_test.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2229,7 +2229,6 @@ def test_batch_check_single_request(self, mock_request):
22292229
self.assertTrue(api_response.result[0].allowed)
22302230
self.assertEqual(api_response.result[0].correlation_id, "1")
22312231
self.assertEqual(api_response.result[0].request, body.checks[0])
2232-
22332232
# Make sure the API was called with the right data
22342233
mock_request.assert_any_call(
22352234
"POST",
@@ -2280,7 +2279,7 @@ def test_batch_check_multiple_request(self, mock_request, mock_uuid):
22802279
"result": {
22812280
"fake-uuid": {
22822281
"error": {
2283-
"inputError": "validation_error",
2282+
"input_error": "validation_error",
22842283
"message": "type 'doc' not found"
22852284
}
22862285
}

0 commit comments

Comments
 (0)