Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not get methods in interfaces #135

Open
magx2 opened this issue Apr 4, 2024 · 1 comment
Open

Not get methods in interfaces #135

magx2 opened this issue Apr 4, 2024 · 1 comment

Comments

@magx2
Copy link

magx2 commented Apr 4, 2024

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
Copy link
Author

magx2 commented Apr 4, 2024

Here you have code to reproduce it magx2/openapi-maven-plugin-error@7ce0d8c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant