diff --git a/openfga_sdk/models/check_error.py b/openfga_sdk/models/check_error.py index 11a4a7b..54b2187 100644 --- a/openfga_sdk/models/check_error.py +++ b/openfga_sdk/models/check_error.py @@ -40,8 +40,8 @@ class CheckError: } attribute_map = { - "input_error": "inputError", - "internal_error": "internalError", + "input_error": "input_error", + "internal_error": "internal_error", "message": "message", } diff --git a/test/client/client_test.py b/test/client/client_test.py index 86b6e33..fa16fe7 100644 --- a/test/client/client_test.py +++ b/test/client/client_test.py @@ -2275,7 +2275,7 @@ async def test_batch_check_multiple_request(self, mock_request, mock_uuid): "result": { "fake-uuid": { "error": { - "inputError": "validation_error", + "input_error": "validation_error", "message": "type 'doc' not found" } } diff --git a/test/sync/client/client_test.py b/test/sync/client/client_test.py index 03c682f..5d7ca86 100644 --- a/test/sync/client/client_test.py +++ b/test/sync/client/client_test.py @@ -2228,7 +2228,6 @@ def test_batch_check_single_request(self, mock_request): self.assertTrue(api_response.result[0].allowed) self.assertEqual(api_response.result[0].correlation_id, "1") self.assertEqual(api_response.result[0].request, body.checks[0]) - # Make sure the API was called with the right data mock_request.assert_any_call( "POST", @@ -2279,7 +2278,7 @@ def test_batch_check_multiple_request(self, mock_request, mock_uuid): "result": { "fake-uuid": { "error": { - "inputError": "validation_error", + "input_error": "validation_error", "message": "type 'doc' not found" } }