Closed vincent-pochet closed 1 year ago
Current Error struct does not match format of the API sent by the API
The API format is:
{ "status": 422, "error": "Unprocessable Entity", "code": "validation_errors", "error_details": { "code": ["value_already_exist"] } }
while the current implementation is expecting:
{ "status": 422, "message": "Unprocessable Entity", "error_details": ["value_already_exist"] }
This PR updates the struct tags to ensure error received from the API are correctly parsed
Related to https://github.com/getlago/lago-go-client/issues/92
Context
Current Error struct does not match format of the API sent by the API
The API format is:
while the current implementation is expecting:
Description
This PR updates the struct tags to ensure error received from the API are correctly parsed