kbuntrock / openapi-maven-plugin

Generate openapi documentation for SpringMVC or JaxRS/JakartaRS projects.
https://kbuntrock.github.io/openapi-maven-plugin/
MIT License
13 stars 8 forks source link

Not `get` methods in interfaces #135

Open magx2 opened 3 weeks ago

magx2 commented 3 weeks ago

I found a bug that when an interface has a method named without get prefix it will not show in generated swagger:

This interface

public interface NoGetInterface {
    String foo();
}

will produce empty schema:

components:
  schemas:
    NoGetInterface:
      type: object

where in my opinion it should have foo field, like this:

components:
  schemas:
    NoGetInterface:
      type: object
      properties:
        foo:
          type: string
magx2 commented 3 weeks ago

Here you have code to reproduce it https://github.com/magx2/openapi-maven-plugin-error/commit/7ce0d8c9f7765cc8f4c385aef2bedacd1d25fa21