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

SpringDoc - Adding extra object's properties #2824

Open
GAbbona opened this issue Dec 18, 2024 · 0 comments
Open

SpringDoc - Adding extra object's properties #2824

GAbbona opened this issue Dec 18, 2024 · 0 comments

Comments

@GAbbona
Copy link

GAbbona commented Dec 18, 2024

Describe the bug

When having on a model an attribute which name starts with 'set' (eg. settlement). It creates in the v3/api-docs Json and also in the swagger-ui, an extra property (not included in the Java Model), named 'tlement' (without the set). It happens on any property which name starts with 'set'.

To Reproduce
Steps to reproduce the behavior:

After having everything setup for sprindoc swagger-ui:

  • Add on any response model, an attribute which name starts with 'set', eg. settings.
  • Run web application.
  • Check on sagger-ui/index.html, in the response model shows an extra property named 'tings': "string"

Expected behavior

The expected behavior is that extra field should not be created.

Additional context
Using openapi-generator-maven-plugin to generate from swagger contract, in target folder.

@GAbbona GAbbona changed the title Creating unwanted properties SpringDoc - Adding extra object's properties Dec 18, 2024
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