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.
This commit is contained in:
Kyle Shockey
2017-10-20 16:01:26 -07:00
parent 9a442b16e3
commit 631e69f6f8

View File

@@ -115,7 +115,7 @@ export default class ParameterRow extends Component {
required={ required } required={ required }
description={param.get("description") ? `${param.get("name")} - ${param.get("description")}` : `${param.get("name")}`} description={param.get("description") ? `${param.get("name")} - ${param.get("description")}` : `${param.get("name")}`}
onChange={ this.onChangeWrapper } onChange={ this.onChangeWrapper }
schema={ param }/> schema={ isOAS3 && isOAS3() ? param.get("schema") : param }/>
} }