Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

feat: adding support for handling default responses #846

Merged
merged 2 commits into from
Jul 17, 2020

Conversation

erunion
Copy link
Member

@erunion erunion commented Jul 16, 2020

🎫 Asana

🧰 What's being changed?

This adds support for default responses in operations.

🧪 Testing

You can see this lack of support here: http://bin.readme.com/s/5f10b79bbfe30000247ea10d

Screen Shot 2020-07-16 at 1 32 25 PM

What it looks like now:

Screen Shot 2020-07-16 at 1 32 33 PM

This also fixes an issue where default in the response dropdown wasn't capitalized:

Screen Shot 2020-07-16 at 1 33 03 PM

And fixed:
Screen Shot 2020-07-16 at 1 34 06 PM

@erunion erunion added type:enhancement A potential new feature to be added, or an improvement we could make area:explorer labels Jul 16, 2020
@erunion erunion marked this pull request as ready for review July 16, 2020 20:47
@@ -4,7 +4,7 @@
"version": "6.15.1",
"main": "dist/index.js",
"dependencies": {
"@readme/http-status-codes": "^7.0.0",
"@readme/http-status-codes": "^7.1.0",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This dep update gave us support for accepting default as a valid status code. See readmeio/http-status-codes#7

@erunion erunion merged commit 783fe1a into next Jul 17, 2020
@erunion erunion deleted the fix/default-response-examples branch July 17, 2020 21:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type:enhancement A potential new feature to be added, or an improvement we could make
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants