Skip to content

Commit

Permalink
fix(swagger-ui-react): fix prop type for plugins (#7877)
Browse files Browse the repository at this point in the history
Co-authored-by: Tim Lai <timothy.lai@gmail.com>
  • Loading branch information
airamrguez and tim-lai committed Mar 2, 2022
1 parent eece9f5 commit 544d16d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flavors/swagger-ui-react/index.jsx
Expand Up @@ -106,7 +106,10 @@ SwaggerUI.propTypes = {
PropTypes.oneOf(["get", "put", "post", "delete", "options", "head", "patch", "trace"])
),
queryConfigEnabled: PropTypes.bool,
plugins: PropTypes.arrayOf(PropTypes.object),
plugins: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.object),
PropTypes.func,
]),
displayOperationId: PropTypes.bool,
showMutatedRequest: PropTypes.bool,
defaultModelExpandDepth: PropTypes.number,
Expand Down

0 comments on commit 544d16d

Please sign in to comment.