fix(swagger-ui-react): fix prop type for plugins (#7877)
Co-authored-by: Tim Lai <timothy.lai@gmail.com>
This commit is contained in:
@@ -106,7 +106,10 @@ SwaggerUI.propTypes = {
|
|||||||
PropTypes.oneOf(["get", "put", "post", "delete", "options", "head", "patch", "trace"])
|
PropTypes.oneOf(["get", "put", "post", "delete", "options", "head", "patch", "trace"])
|
||||||
),
|
),
|
||||||
queryConfigEnabled: PropTypes.bool,
|
queryConfigEnabled: PropTypes.bool,
|
||||||
plugins: PropTypes.arrayOf(PropTypes.object),
|
plugins: PropTypes.oneOfType([
|
||||||
|
PropTypes.arrayOf(PropTypes.object),
|
||||||
|
PropTypes.func,
|
||||||
|
]),
|
||||||
displayOperationId: PropTypes.bool,
|
displayOperationId: PropTypes.bool,
|
||||||
showMutatedRequest: PropTypes.bool,
|
showMutatedRequest: PropTypes.bool,
|
||||||
defaultModelExpandDepth: PropTypes.number,
|
defaultModelExpandDepth: PropTypes.number,
|
||||||
|
|||||||
Reference in New Issue
Block a user