This release includes support for OpenAPI 3.0's Examples Object within Parameter, Request Body, and Response Objects.
Changelog
- feature: Multiple Examples for OpenAPI 3 Parameters, Request Bodies, and Responses (via #5427)
Internal API notes
Several things have moved around internally.
If you make heavy use of the Plugin API, this may be of concern to you:
- the
Parameters
component no longer has awrapComponent
in OpenAPI 3.0. Version-specific logic is now contained within one component. ParameterRow
now needsoas3Actions
andoas3Selectors
as props.Response
now needspath
andmethod
as props.Responses
'shouldComponentUpdate
check has been removed, it now re-renders as the Redux store changes.RequestBodyEditor
has been heavily modified. It is no longer aware of the underlying request body or schema, and only concerns itself with the string value being edited. It will now also update its own internal state if thevalue
prop given to it changes.