You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
GAbbona
changed the title
Creating unwanted properties
SpringDoc - Adding extra object's properties
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:
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.
The text was updated successfully, but these errors were encountered: