fix(swagger-ui-react): Use oneOfType in spec prop validation (fix #6399) (#6400)

This commit is contained in:
Nikolaos Kamarinakis
2020-09-21 21:58:17 +03:00
committed by GitHub
parent 64a07dff40
commit 52360a0612

View File

@@ -79,7 +79,7 @@ export default class SwaggerUI extends React.Component {
}
SwaggerUI.propTypes = {
spec: PropTypes.oneOf([
spec: PropTypes.oneOfType([
PropTypes.string,
PropTypes.object,
]),