diff --git a/src/core/plugins/oas3/components/request-body.jsx b/src/core/plugins/oas3/components/request-body.jsx index 27b7bd5b..44ed5be8 100644 --- a/src/core/plugins/oas3/components/request-body.jsx +++ b/src/core/plugins/oas3/components/request-body.jsx @@ -29,12 +29,12 @@ const RequestBody = ({ const mediaTypeValue = requestBodyContent.get(contentType) - const isObjectContent = mediaTypeValue.getIn(["schema", "type"]) === "object" - if(!mediaTypeValue) { return null } + const isObjectContent = mediaTypeValue.getIn(["schema", "type"]) === "object" + if( contentType === "application/octet-stream" || contentType.indexOf("image/") === 0 diff --git a/src/core/plugins/oas3/wrap-components/parameters.jsx b/src/core/plugins/oas3/wrap-components/parameters.jsx index a9df082c..b762b2c7 100644 --- a/src/core/plugins/oas3/wrap-components/parameters.jsx +++ b/src/core/plugins/oas3/wrap-components/parameters.jsx @@ -1,6 +1,6 @@ import React, { Component } from "react" import PropTypes from "prop-types" -import Im, { Map } from "immutable" +import Im, { Map, List } from "immutable" import ImPropTypes from "react-immutable-proptypes" import { OAS3ComponentWrapFactory } from "../helpers" @@ -177,7 +177,7 @@ class Parameters extends Component {