Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null Result when bodyText contains StatusCode #131

Open
cuneytdogru opened this issue May 9, 2022 · 0 comments
Open

Null Result when bodyText contains StatusCode #131

cuneytdogru opened this issue May 9, 2022 · 0 comments

Comments

@cuneytdogru
Copy link
Contributor

When wrapped content contains StatusCode as a property, AutoWrapper deserialize it into ApiResponse class and changes the real status code value.

For example, when return body looks like this;

{
"messageId": "XXXXXXX",
"messageDateTime": "2022-05-09",
"text": "this is a test of the new texting system",
"messageStatus": "message-delivered",
"statusCode": "202",
}

wrapper deserialze 202 as a httpResponse and final response look like this without any result;

{
"version": "1.0.0.0",
"statusCode": 202,
"message": "GET Request successful."
}

What i see is; It should only deserialize from bodyText if bodyText contains Result property. Otherwise must create a new instance.

Maybe that is not the complete solution but fixes the problem and passes all tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant