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

Topic/val response #56

Merged
merged 3 commits into from
Feb 18, 2015
Merged

Topic/val response #56

merged 3 commits into from
Feb 18, 2015

Conversation

bryce-anderson
Copy link
Member

This adds the ability to provide a custom response when doing validation as opposed to only allowing Bad Request.

A problem with this method is that we cannot know the response type and therefor cannot document it. In principal it was possible to examine the route to see if it would perform validation and then append Bad Request to the list of possible responses (this wasn't done), but this makes it completely ambiguous.

This needs some cleanup and some consideration of the naming.
It was discovered while creating tests that a `Response` is not natural to build.
Add examples of alternative responses for validation purposes.
bryce-anderson added a commit that referenced this pull request Feb 18, 2015
@bryce-anderson bryce-anderson merged commit 4c3a015 into master Feb 18, 2015
@bryce-anderson bryce-anderson deleted the topic/valResponse branch February 18, 2015 15:17
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

1 participant