Skip to content

Commit

Permalink
fix(swagger-ui-react): add showExtension propType
Browse files Browse the repository at this point in the history
Refs #5892
  • Loading branch information
char0n committed Nov 8, 2021
1 parent d7ec726 commit 4a78313
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flavors/swagger-ui-react/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ export default class SwaggerUI extends React.Component {
defaultModelExpandDepth: this.props.defaultModelExpandDepth,
displayOperationId: this.props.displayOperationId,
tryItOutEnabled: this.props.tryItOutEnabled,
showExtensions: this.props.showExtensions,
showMutatedRequest: typeof this.props.showMutatedRequest === "boolean" ? this.props.showMutatedRequest : true,
deepLinking: typeof this.props.deepLinking === "boolean" ? this.props.deepLinking : false,
showExtensions: this.props.showExtensions,
})

this.system = ui
Expand Down Expand Up @@ -103,6 +103,7 @@ SwaggerUI.propTypes = {
defaultModelsExpandDepth: PropTypes.number,
presets: PropTypes.arrayOf(PropTypes.func),
deepLinking: PropTypes.bool,
showExtensions: PropTypes.bool,
tryItOutEnabled: PropTypes.bool
}

Expand Down

0 comments on commit 4a78313

Please sign in to comment.