Open josegar74 opened 3 years ago
@josegar74,
Looks like GN is currently using spingdocs 1.5.9 (which seems to be the latest version at the moment)
And according to the dependencies it seems to use Swagger UI version 3.49.0
https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-ui/1.5.9
Ok, "supposedly" according to https://stackoverflow.com/questions/48607100/file-upload-on-swagger-editor-openapi-3-not-showing-the-file-browser-when-trying that should work since Swagger UI 3.16.0.
But seem GeoNetwork has a "manual" copy of the Swagger UI files in https://github.com/geonetwork/core-geonetwork/tree/main/web/src/main/webapp/doc/api, I don't have clear if that matches the version of the springdoc
dependency. Not clear either why these files should be added manually to GeoNetwork.
Describe the bug Add page API (http://localhost:8080/geonetwork/doc/api/index.html#/pages/addPage) doesn't show the data parameter:
https://github.com/geonetwork/core-geonetwork/blob/57a963d64262eb9625f04bae0247ab6cec799078/services/src/main/java/org/fao/geonet/api/pages/PagesAPI.java#L78-L96
To Reproduce Steps to reproduce the behavior:
data
Expected behavior There is an entry for the parameter
data
as in previous versions.Screenshots
Version 4.0
Version 3.12
Seem related to https://github.com/swagger-api/swagger-ui/issues/3784, but the issue is closed without clarifying any reason.
In https://stackoverflow.com/questions/48607100/file-upload-on-swagger-editor-openapi-3-not-showing-the-file-browser-when-trying points to:
@fxprunayre do you know which version of these components are used in GeoNetwork? Related to the Swagger UI, I just see this folder: https://github.com/geonetwork/core-geonetwork/tree/main/web/src/main/webapp/doc/api
But it's unclear the version used, checking in the javascript file I see this
.exports={version:"2.6.5"}
, but not sure if that refers to the version of Swagger UI.Is there any documentation to update Swagger UI and related components if required?