[go: up one dir, main page]

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

Added a warning for malformed json #32

Merged
merged 3 commits into from
Jun 30, 2014

Conversation

mikaa123
Copy link
Contributor

This refs #26. For the majority of us, this error is thrown when we use malformed JSON. The message is really confusing. Maybe we could work something out along these lines: just adding a warning at the end of the error essage.

@kuba-kubula
Copy link
Member

Thanks for the pull-request!

I'd vote not to append the sentence about malformed JSON. Or maybe I'd prefer to append it only if either of expectedType or realType contains JSON text.

@mikaa123
Copy link
Contributor Author

Appending only if either expectedType or realType contains JSON text sounds like a good compromise.

@mikaa123
Copy link
Contributor Author

I changed the error message in the case of a mismatch between realType and expectedType when the realType is application/json.

@ErikPettersson
Copy link

Is this on it's way in? (just got bit by this and it took a while to spot the error)

netmilk pushed a commit that referenced this pull request Jun 30, 2014
Added a warning for malformed json
@netmilk netmilk merged commit 7d26d33 into apiaryio:master Jun 30, 2014
@mikaa123
Copy link
Contributor Author

👍

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.

None yet

4 participants