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 missing safe navigation operator #8

Merged
merged 3 commits into from
Jan 28, 2021

Conversation

JuanCrg90
Copy link
Contributor

If the body doesn't have error or message key, the error validation
fails because we try to perform .include? to a nil object. This
adds a save navigation operator to avoid the scenario. Also we added
the right response for the forbidden error.

Co-authored-by: Oscar Zatarain ozatarain@hotmail.com

JuanCrg90 and others added 3 commits January 28, 2021 12:30
If the body doesn't have error or message key, the error validation
fails because we try to perform `.include?` to a nil object. This
adds a save navigation operator to avoid the scenario.

Co-authored-by: Oscar Zatarain <ozatarain@hotmail.com>
This updates the forbidden error message to the right message sent by
MercadoLibre.

Co-authored-by: Oscar Zatarain <ozatarain@hotmail.com>
Co-authored-by: Oscar Zatarain <ozatarain@hotmail.com>
@JuanCrg90 JuanCrg90 force-pushed the add_missing_safe_navigation_operator branch from a777c1d to 3f12c26 Compare January 28, 2021 18:32
@JuanCrg90 JuanCrg90 merged commit c8aa3c5 into master Jan 28, 2021
@JuanCrg90 JuanCrg90 deleted the add_missing_safe_navigation_operator branch January 28, 2021 18:33
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.

3 participants