-
Notifications
You must be signed in to change notification settings - Fork 45
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
Conform RuntimeError to HTTPResponseConvertible #135
Conform RuntimeError to HTTPResponseConvertible #135
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @gayathrisairam! Added some comments.
29f3d65
to
52618bb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM now. There's just a couple of typos though, then it's good to land.
d8073b4
to
79bd32a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work—thanks @gayathrisairam!
Motivation
apple/swift-openapi-generator#609 (comment)
Modifications
Confirm
RuntimeError
toHTTPResponseConvertible
and provide granular status codes.Result
Response codes for bad user input will be 4xx (instead of 500)
Test Plan
Unit tests.