-
-
Notifications
You must be signed in to change notification settings - Fork 535
Closed
Description
I'm trying to add the collection types ( Option, List, Tuple, etc.) from the vavr-library, but can't seem to find where to plug them in (https://www.vavr.io/vavr-docs/).
I already figured out on how to make the Future type work here https://dominikdorn.com/2020/05/spring-doc-openapi-swagger-vavr-future/
but I'm a little lost on how to make the collections types work.
It would be great if you could point me in the right direction!
This is what I tried so far:
- I've already tried creating a
io.swagger.v3.core.converter.ModelConverter
but this leads to NPEs when swagger tries to clone the schema. - I also tried
SpringDocUtils.getConfig().replaceWithClass(io.vavr.control.Option.class, java.util.Optional.class);
but this seems to be unable to handle generics. - I tried to register the VavrModule with the ObjectMapper of SpringDoc/Swagger, but this also doesn't help (
Json.mapper().registerModule(new VavrModule());
)
Thx,
Dominik
Metadata
Metadata
Assignees
Labels
No labels