From 16e756bed774f3607bb6ec41690da7b593d8842b Mon Sep 17 00:00:00 2001 From: Greg Thompson Date: Tue, 7 Nov 2017 11:15:37 -0600 Subject: [PATCH 1/3] disallow null value --- src/core/components/content-type.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()} From d96bd29d0cec4341206e715c8e134fbf78bda176 Mon Sep 17 00:00:00 2001 From: Greg Thompson Date: Tue, 7 Nov 2017 11:16:41 -0600 Subject: [PATCH 2/3] pass required getConfig to parameter-row --- src/core/plugins/oas3/wrap-components/parameters.jsx | 3 +++ 1 file changed, 3 insertions(+) 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) => ( Date: Tue, 7 Nov 2017 11:17:05 -0600 Subject: [PATCH 3/3] contentType prop not required --- src/core/plugins/oas3/components/request-body.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }