-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Description
| Q | A |
|---|---|
| Bug or feature request? | Feature request |
| Which Swagger/OpenAPI version? | |
| Which Swagger-UI version? | swagger-ui@3.2.0 |
| How did you install Swagger-UI? | npm |
| Which browser & version? | Chrome latest |
| Which operating system? | OSX |
Demonstration API definition
Expected Behavior
When upgrading to React 16, Swagger UI should not throw any errors.
Current Behavior
It throws an error.
Possible Solution
Upgrade react-collapse to use a newer version.
Context
I am embedding Swagger-UI in my React app. I tried to upgrade to React 16 but got some errors. Swagger UI uses an old version of react-collapse that uses an old version of react-motion that is using react.PropTypes, which no longer exist in React.
larmic, haakonmt and legrego