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

Add possibility of return Empty #130

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pauloabreu
Copy link
Contributor

@pauloabreu pauloabreu commented Jun 23, 2022

Resume

Sometimes, if has not contact in a period of time, it can cause an error.

Solution

I created a new field in protobuf called "is_valid", so if the response is not ok, it will return a empty object with is_valid = False

System check identified no issues (0 silenced).
....
----------------------------------------------------------------------
Ran 4 tests in 1.380s
OK

reference: Ilhasoft/weni-protobuffers#78

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

Successfully merging this pull request may close these issues.

1 participant