Merge branch 'master' into bug/3747-oas3-validate-param

This commit is contained in:
kyle
2017-10-11 17:57:46 -07:00
committed by GitHub
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) // Anything else (CORS)
} else if (typeof content === "string") { } else if (typeof content === "string") {
bodyEl = <HighlightCode value={ content } /> 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> 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> return ( !bodyEl ? null : <div>

View File

@@ -543,14 +543,14 @@
.response-col_description__inner .response-col_description__inner
{ {
span div.markdown, div.renderedMarkdown
{ {
font-size: 12px; font-size: 12px;
font-style: italic; font-style: italic;
display: block; display: block;
margin: 10px 0; margin: 0;
padding: 10px; padding: 10px;
border-radius: 4px; border-radius: 4px;