Closed acommuni closed 5 years ago
Quick question: are you registering Java 8 date/time module (jackson-datatype-jsr310
)? Without it, your schema generation would probably not work as expected, as Java 8 datatypes would not be supported explicitly.
It works better now. Thanks ! It would be nice to have loop detection and a log notifying which class or field is the root of the loop
@acommuni I agree, loop should be detected and gracefully handled. If I have time, I hope to figure out a simple reproduction, using simple POJO (to avoid Java 8 dependency for 2.x)
Interesting. Direct self-reference is fine, and did not cause issue. It's only loop through at least one class. At least I can reproduce it now, initially had some issues.
I'm trying to generate schema from class on the following class :
I generate the class with this :
The stack loops on OffsetDatetime resolution