Hi everyone, I was having a look at HADOOP-15984 and the general issue about how to upgrade Jersey or to patch the existing Jersey solution to lessen its dependence on old unmaintained jars - ones that are causing issues with keeping jars like Jackson up to date.
I found that hadoop-yarn-applications-catalog-webapp uses a very old version of swagger to generate swagger docs and to expose them as a servlet [2]. This support also keeps us tied to old versions of Jersey. The Swagger API spec itself has long since been moved to OpenAPI and latest version of the OpenAPI spec is very different from the old Swagger spec [3[. It will be hard to upgrade those swagger libs until we somehow move on the Jersey solution but this swagger usage might also act as a road block for the Jersey upgrade. To cut a long story short, has there been any consideration given to removing this support? If people are genuinely using these generated swagger docs, we could generate the swagger API docs as a JSON file as a one off and serve that as static content. For instance, how often do the APIs change? If the API changed, we could manually upgrade the static swagger API JSON. Any thoughts on this issue would be appreciated. Regards, PJ [1] https://issues.apache.org/jira/browse/HADOOP-15984 [2] https://docs.swagger.io/service/java/tomcat-jersey-1.html [3] https://nordicapis.com/comparing-the-features-of-openapi-v3-vs-openapi-v2/ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
