未验证 提交 52360a06 编写于 作者: N Nikolaos Kamarinakis 提交者: GitHub

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

上级 64a07dff
......@@ -79,7 +79,7 @@ export default class SwaggerUI extends React.Component {
}
SwaggerUI.propTypes = {
spec: PropTypes.oneOf([
spec: PropTypes.oneOfType([
PropTypes.string,
PropTypes.object,
]),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册