Merge branch 'master' of github.com:swagger-api/swagger-ui into bug/3747-oas3-validate-param

This commit is contained in:
Owen Conti
2017-10-11 19:19:51 -06:00
2 changed files with 7 additions and 3 deletions

View File

@@ -83,8 +83,12 @@ export default class ResponseBody extends React.Component {
// Anything else (CORS)
} else if (typeof content === "string") {
bodyEl = <HighlightCode value={ content } />
} else {
} else if ( content.size > 0 ) {
// We don't know the contentType, but there was some content returned
bodyEl = <div>Unknown response type</div>
} else {
// We don't know the contentType and there was no content returned
bodyEl = null
}
return ( !bodyEl ? null : <div>