Skip to content

Commit 5bc096d

Browse files
committed
Fit linter and tests
1 parent a58e6eb commit 5bc096d

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

src/core/plugins/oas3/components/request-body-editor.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { PureComponent } from "react"
22
import PropTypes from "prop-types"
3-
import { fromJS, List } from "immutable"
3+
import { fromJS } from "immutable"
44
import { getSampleSchema } from "core/utils"
55

66
const NOOP = Function.prototype

src/core/plugins/oas3/components/request-body.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import React from "react"
22
import PropTypes from "prop-types"
33
import ImPropTypes from "react-immutable-proptypes"
44
import { OrderedMap } from "immutable"
5-
import { getSampleSchema } from "core/utils"
6-
75

86
const RequestBody = ({
97
requestBody,
@@ -49,7 +47,9 @@ RequestBody.propTypes = {
4947
requestBody: ImPropTypes.orderedMap.isRequired,
5048
getComponent: PropTypes.func.isRequired,
5149
specSelectors: PropTypes.object.isRequired,
52-
contentType: PropTypes.string.isRequired
50+
contentType: PropTypes.string.isRequired,
51+
isExecute: PropTypes.bool.isRequired,
52+
onChange: PropTypes.func.isRequired
5353
}
5454

5555
export default RequestBody

src/core/plugins/oas3/selectors.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { createSelector } from "reselect"
21
import { OrderedMap } from "immutable"
32
import { isOAS3 as isOAS3Helper } from "./helpers"
43

src/core/plugins/oas3/wrap-components/parameters.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ class Parameters extends Component {
2323
operation: PropTypes.object.isRequired,
2424
getComponent: PropTypes.func.isRequired,
2525
specSelectors: PropTypes.object.isRequired,
26+
oas3Actions: PropTypes.object.isRequired,
27+
oas3Selectors: PropTypes.object.isRequired,
2628
fn: PropTypes.object.isRequired,
2729
tryItOutEnabled: PropTypes.bool,
2830
allowTryItOut: PropTypes.bool,

test/core/plugins/spec/actions.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ describe("spec plugin - actions", function(){
113113
spec: () => fromJS({}),
114114
parameterValues: () => fromJS({}),
115115
contentTypeValues: () => fromJS({}),
116-
url: () => fromJS({})
116+
url: () => fromJS({}),
117+
isOAS3: () => false
117118
},
118119
getConfigs: () => configs
119120
}

0 commit comments

Comments
 (0)