ePages-de / restdocs-api-spec

Adds API specification support to Spring REST Docs
MIT License
391 stars 103 forks source link

GH-178 Fix StackOverflowError in JSON schema generator #179

Open ozscheyge opened 3 years ago

ozscheyge commented 3 years ago

https://github.com/ePages-de/restdocs-api-spec/issues/178

Using

FieldDescriptor("some[*].foo", "some", "Object"),
FieldDescriptor("some[*].bar", "some", "Object")

(both with wildcard) or

FieldDescriptor("some[].foo", "some", "Object"),
FieldDescriptor("some[].bar", "some", "Object")

(both without wildcard) pass, just a mixture fails with StackOverflowError.