Skip to content

Commit

Permalink
fix(swagger-ui-react): Use oneOfType in spec prop validation (fix #6399
Browse files Browse the repository at this point in the history
…) (#6400)
  • Loading branch information
k4m4 committed Sep 21, 2020
1 parent 64a07df commit 52360a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flavors/swagger-ui-react/index.js
Expand Up @@ -79,7 +79,7 @@ export default class SwaggerUI extends React.Component {
}

SwaggerUI.propTypes = {
spec: PropTypes.oneOf([
spec: PropTypes.oneOfType([
PropTypes.string,
PropTypes.object,
]),
Expand Down

0 comments on commit 52360a0

Please sign in to comment.