|
|
@@ -18,6 +18,7 @@ export default class SwaggerUI extends React.Component { |
|
|
|
responseInterceptor: this.responseInterceptor, |
|
|
|
onComplete: this.onComplete, |
|
|
|
docExpansion: this.props.docExpansion, |
|
|
|
supportedSubmitMethods: this.props.supportedSubmitMethods, |
|
|
|
defaultModelExpandDepth: this.props.defaultModelExpandDepth, |
|
|
|
}) |
|
|
|
|
|
|
@@ -84,6 +85,9 @@ SwaggerUI.propTypes = { |
|
|
|
responseInterceptor: PropTypes.func, |
|
|
|
onComplete: PropTypes.func, |
|
|
|
docExpansion: PropTypes.oneOf(['list', 'full', 'none']), |
|
|
|
supportedSubmitMethods: PropTypes.arrayOf( |
|
|
|
PropTypes.oneOf(['get', 'put', 'post', 'delete', 'options', 'head', 'patch', 'trace']) |
|
|
|
), |
|
|
|
defaultModelExpandDepth: PropTypes.number, |
|
|
|
plugins: PropTypes.arrayOf(PropTypes.object), |
|
|
|
} |