If you haven’t integrated Swagger to your project you need to do it, but it will depend on the Api Implementation you are using, you can see this samples:
Originally posted by tdudgeon on December 03, 2018
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.
Originally posted by RonRatovsky on December 03, 2018
Technically, you can do what you’re trying to achieve, but it would require some coding. You can follow a similar logic to what the Reader class does for reading the annotations and parsing them into an OpenAPI object, just create it with your own logic of converting your existing structure to the OpenAPI object.