Skip to content

Commit

Permalink
Pass parameter.schema as schema in OAS 3.0
Browse files Browse the repository at this point in the history
Parameters were restructured in OAS 3.0; schemas are no longer at
the top level of parameters. Adjusting to account for the change.
  • Loading branch information
shockey committed Oct 20, 2017
1 parent 9a442b1 commit 631e69f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/components/parameter-row.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default class ParameterRow extends Component {
required={ required }
description={param.get("description") ? `${param.get("name")} - ${param.get("description")}` : `${param.get("name")}`}
onChange={ this.onChangeWrapper }
schema={ param }/>
schema={ isOAS3 && isOAS3() ? param.get("schema") : param }/>
}


Expand Down

0 comments on commit 631e69f

Please sign in to comment.