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:
@@ -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 }/>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user