ContributionsMost RecentMost LikesSolutionsRe: Creating OpenAPI definition from Java code I don't think that's quite what I'm needing. I have a Java class that describes an API, a bit like your io.swagger.v3.oas.models.OpenAPI class. This definition contains many of the attributes that are needed for an OpenAPI descriptor. So what I need to do is translate from my descriptor to the OpenAPI descriptor. One instance of my descriptor would be translated into one instance of OpenAPI. And this would be done in Java code. I've got a very basic initial example working, but was hoping there were examples available that describe how to create an OpenAPI instance in all its aspects. Creating OpenAPI definition from Java code I have need to convert an API defintion to OpenAPI. The existing defintion is expressed as a Java class so I need to use the Java API to convert this. Are there any examples of how to generate OpenAPI from plain Java? Solved