0

I'm looking for documentation that describes the Swagger annotations that the io.swagger.v3.oas.models.OpenAPI class will detect when generating a swagger file from Java resources. I have tried using annotations from this Wiki page and they throw errors in my project.

enter image description here

The error is "cannot be resolved to a type". Eclipse cannot find a class for this annotation

GNG
  • 1,341
  • 2
  • 23
  • 50
  • The page you linked to is in fact the documentation for `io.swagger.v3.*` annotations. Are you sure your project uses Swagger Core 2.x and not the older Swagger Core 1.x? – Helen Oct 07 '19 at 18:12
  • 1
    I needed to add this class to my project's build path. – GNG Oct 07 '19 at 21:20
  • Possible duplicate of [Eclipse error ... cannot be resolved to a type](https://stackoverflow.com/questions/15794821/eclipse-error-cannot-be-resolved-to-a-type) – Helen Oct 07 '19 at 21:39

0 Answers0