Skip to content

Commit 5874d2b

Browse files
authoredMar 10, 2022
fix(swagger-ui-react): amend prop validation for plugins (#7900)
plugins prop can be defined as list of function as well.
1 parent 08829b1 commit 5874d2b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎flavors/swagger-ui-react/index.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ SwaggerUI.propTypes = {
108108
queryConfigEnabled: PropTypes.bool,
109109
plugins: PropTypes.oneOfType([
110110
PropTypes.arrayOf(PropTypes.object),
111+
PropTypes.arrayOf(PropTypes.func),
111112
PropTypes.func,
112113
]),
113114
displayOperationId: PropTypes.bool,

0 commit comments

Comments
 (0)
Please sign in to comment.