Example Swagger/OpenAPI definition:
Petstore Demo: http://petstore.swagger.io/v2/swagger.json
Swagger-UI configuration options:
Default configuration - npm run dev
The browser console shows the following warning when opening a Model:
VM5274 10:33 Warning: Failed prop type: Invalid prop `schema` of type `Immutable.Map` supplied to `Model`, expected `OrderedMap`.
in Model (created by ModelWrapper)
in ModelWrapper (created by Models)
in span (created by ModelCollapse)
in ModelCollapse (created by Models)
in div (created by Models)
in div (created by NoMargin)
in NoMargin (created by Collapse)
in Collapse (created by Models)
in section (created by Models)
in Models (created by _class)
in _class (created by Connect(_class))
in Connect(_class) (created by BaseLayout)
in section (created by Col)
in Col (created by BaseLayout)
in div (created by Row)
in Row (created by BaseLayout)
in div (created by BaseLayout)
in div (created by BaseLayout)
in BaseLayout (created by _class)
in _class (created by Connect(_class))
in Connect(_class)
in section (created by Container)
in Container
in StandaloneLayout (created by _class)
in _class (created by Connect(_class))
in Connect(_class) (created by App)
in App (created by _class)
in _class (created by Connect(_class))
in Connect(_class) (created by _class2)
in Provider (created by _class2)
in _class2
Steps to reproduce the behavior:
There is no warning shown.

This may be related to the fix of the following bug: https://github.com/swagger-api/swagger-ui/issues/4291
Note that these warnings are only visible in development - actual builds of Swagger-UI don't show this issue. (The exception: folks using Swagger-UI in their own React applications will see these errors in the course of _their_ development)
Nonetheless, it's console noise that should be addressed 馃槃
Most helpful comment
Note that these warnings are only visible in development - actual builds of Swagger-UI don't show this issue. (The exception: folks using Swagger-UI in their own React applications will see these errors in the course of _their_ development)
Nonetheless, it's console noise that should be addressed 馃槃