Search code examples
javaapache-camelswaggeropenapi

Mark an endpoint as deprecated with camel-swagger-java


Is there a way to mark a particular endpoint as deprecated in swagger using the modules camel-swagger-java or camel-openapi-java?

Reviewing the openapi v2 specification is possible to add the "deprecated: true" property to the documentation in order to deprecate and endpoint but I can't find a way to implement this using camel swagger or camel openapi. I was testing both demo projects from camel (rest swagger example and rest openapi example) and I couldn't implement this behaviour.

Is there something that I'm missing? I was also trying to find a ticket in Camel's Jira portal related to this issue and I didn't find any.

Thanks in advance for your help.


Solution

  • Turns out this functionality was not present in camel (nor for swagger neither openapi) so I created a Jira for this. It was implemented by someone in the community and It's going to be ready for the next camel release.

    UPDATE

    The improvement was done and is ready in Camel 3.10.0 onwards.