-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Class with cyclic reference and non property id results in NPE #3453
Comments
There is also another workaround - using So the sample class looks as below:
|
@xardif: The ObjectIdGenerators.StringIdGenerator works, because it is not taken into consideration yet, which is another bug from my point of view. |
Closing as fixed by #3908 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Creating class as below and returning it from an API results in exception (at the bottom of the issue).
I have tried using
@JsonManagedReference
, but this does not result in anything.The only workaround is to migrate to
ObjectIdGenerators.PropertyGenerator
and create additional property in model as below:The above classes can be used to extend test cases in
io.swagger.v3.jaxrs2.resources.JsonIdentityCyclicResource
.The exception:
The text was updated successfully, but these errors were encountered: