REST Expanders 3.6.0
Migration guide
This version of the expanders provides an update of Swagger UI from 3.52.5
to 4.15.5
. One notable change is that all
inline JavaScript and CSS styling was moved from the main swagger-ui.html
file into separate files
swagger-initializer.js
and index.css
. The CSS file has simply been added as css/swagger-ui-index.css
. The inline
JavaScript code did however contain several anchors. These anchors have been moved from their original location in
html/<componentName>-swagger.html
to js/<componentName>-swagger-initializer.js
. This pertains to the following
anchors:
@before-setup
andcustom-before-setup
@config
andcustom-config
@after-setup
andcustom-after-setup
As all of these anchors were placed in inline javascript code, it should be sufficient move the harvest file from
html/<componentName>-swagger.html.harvest
to js/<componentName>-swagger-initializer.js.harvest
.
Of course any expanders that may target these anchors will also have to be updated to inject features into the new file.