diff --git a/src/core/components/content-type.jsx b/src/core/components/content-type.jsx index 4a5e7349..6f81f671 100644 --- a/src/core/components/content-type.jsx +++ b/src/core/components/content-type.jsx @@ -37,7 +37,7 @@ export default class ContentType extends React.Component { return (
- { contentTypes.map( (val) => { return }).toArray()} diff --git a/src/core/plugins/oas3/components/request-body.jsx b/src/core/plugins/oas3/components/request-body.jsx index 7094e068..5b20a50c 100644 --- a/src/core/plugins/oas3/components/request-body.jsx +++ b/src/core/plugins/oas3/components/request-body.jsx @@ -50,7 +50,7 @@ RequestBody.propTypes = { getComponent: PropTypes.func.isRequired, getConfigs: PropTypes.func.isRequired, specSelectors: PropTypes.object.isRequired, - contentType: PropTypes.string.isRequired, + contentType: PropTypes.string, isExecute: PropTypes.bool.isRequired, onChange: PropTypes.func.isRequired } diff --git a/src/core/plugins/oas3/wrap-components/parameters.jsx b/src/core/plugins/oas3/wrap-components/parameters.jsx index a825f530..ac61e90f 100644 --- a/src/core/plugins/oas3/wrap-components/parameters.jsx +++ b/src/core/plugins/oas3/wrap-components/parameters.jsx @@ -22,6 +22,7 @@ class Parameters extends Component { specActions: PropTypes.object.isRequired, operation: PropTypes.object.isRequired, getComponent: PropTypes.func.isRequired, + getConfigs: PropTypes.func.isRequired, specSelectors: PropTypes.object.isRequired, oas3Actions: PropTypes.object.isRequired, oas3Selectors: PropTypes.object.isRequired, @@ -86,6 +87,7 @@ class Parameters extends Component { fn, getComponent, + getConfigs, specSelectors, oas3Actions, oas3Selectors, @@ -137,6 +139,7 @@ class Parameters extends Component { eachMap(parameters, (parameter) => (