Skip to content

Commit 631e69f

Browse files
committed
Pass parameter.schema as schema in OAS 3.0
Parameters were restructured in OAS 3.0; schemas are no longer at the top level of parameters. Adjusting to account for the change.
1 parent 9a442b1 commit 631e69f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/components/parameter-row.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export default class ParameterRow extends Component {
115115
required={ required }
116116
description={param.get("description") ? `${param.get("name")} - ${param.get("description")}` : `${param.get("name")}`}
117117
onChange={ this.onChangeWrapper }
118-
schema={ param }/>
118+
schema={ isOAS3 && isOAS3() ? param.get("schema") : param }/>
119119
}
120120

121121

0 commit comments

Comments
 (0)