improvement: expose docExpansion as a prop in swagger-ui-react (via #5242)
* improvement: expose docExpansion setting as a prop in swagger-ui-react * Update README.md * Update index.js * Update README.md * Update README.md
This commit is contained in:
@@ -16,6 +16,7 @@ export default class SwaggerUI extends React.Component {
|
||||
requestInterceptor: this.requestInterceptor,
|
||||
responseInterceptor: this.responseInterceptor,
|
||||
onComplete: this.onComplete,
|
||||
docExpansion: this.props.docExpansion,
|
||||
})
|
||||
|
||||
this.system = ui
|
||||
@@ -80,4 +81,5 @@ SwaggerUI.propTypes = {
|
||||
requestInterceptor: PropTypes.func,
|
||||
responseInterceptor: PropTypes.func,
|
||||
onComplete: PropTypes.func,
|
||||
docExpansion: PropTypes.oneOf(['list', 'full', 'none']),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user