-
Notifications
You must be signed in to change notification settings - Fork 137
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
SchemaGenerator generates additional properties wrongly. #143
Comments
Found one workaround for this. But, I still feel these are workarounds, and |
This seems to work as expected: You can, however, change configurations so that only explicitly annotated accessors are considered. |
@cowtowncoder This works. Thanks 👍 |
Glad it works @rohnigam! |
I have a class like below:
This will go on to generate the following json schema
For brevity I have excluded the details of A, B and C in both java classes and json schema generated.
Bug:
somethingAboutA is not actually a property and should not be generated.
Is there any workaround for this ?
Or maybe I am missing some other configuration ?
My observation is that this is only happening when a method starts with get,
so may be, it is being interpreted as an attribute.
I am using the latest version of this library.
This is the schema generation code:
The text was updated successfully, but these errors were encountered: