Merge pull request #4019 from swagger-api/swagger-ui/master
Do not display undocumenetd when there is a default response
This commit is contained in:
@@ -107,7 +107,7 @@ export default class Operation extends PureComponent {
|
|||||||
|
|
||||||
// Merge in Live Response
|
// Merge in Live Response
|
||||||
if(responses && response && response.size > 0) {
|
if(responses && response && response.size > 0) {
|
||||||
let notDocumented = !responses.get(String(response.get("status")))
|
let notDocumented = !responses.get(String(response.get("status"))) && !responses.get("default")
|
||||||
response = response.set("notDocumented", notDocumented)
|
response = response.set("notDocumented", notDocumented)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user