Skip to content

Commit

Permalink
fix(swagger-ui-react): amend prop validation for plugins (#7900)
Browse files Browse the repository at this point in the history
plugins prop can be defined as list of function as well.
  • Loading branch information
char0n committed Mar 10, 2022
1 parent 08829b1 commit 5874d2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flavors/swagger-ui-react/index.jsx
Expand Up @@ -108,6 +108,7 @@ SwaggerUI.propTypes = {
queryConfigEnabled: PropTypes.bool,
plugins: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.object),
PropTypes.arrayOf(PropTypes.func),
PropTypes.func,
]),
displayOperationId: PropTypes.bool,
Expand Down

0 comments on commit 5874d2b

Please sign in to comment.