feat(swagger-ui-react): add showExtensions option (#7563)

Closes #5892
This commit is contained in:
glebbash
2021-11-08 10:37:28 +02:00
committed by GitHub
parent 83021df9b0
commit d7ec726886
2 changed files with 8 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ 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,
})
@@ -112,4 +113,5 @@ SwaggerUI.defaultProps = {
defaultModelsExpandDepth: 1,
presets: [],
deepLinking: false,
showExtensions: false,
}