You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not using swagger-core directly but using springdoc-openapi-starter-webmvc-ui (2.8.8) and springwolf-kafka (1.13.0) and both are using swagger-core-jakarta (2.2.30).
Since using those versions, I have the following error when trying to access swagger :
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8 optional type `java.util.Optional` not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jdk8" to enable handling (through reference chain: io.swagger.v3.oas.models.OpenAPI["paths"]->io.swagger.v3.oas.models.Paths["/api/v1/organizations"]->io.swagger.v3.oas.models.PathItem["get"]->io.swagger.v3.oas.models.Operation["parameters"]->java.util.ArrayList[2]->io.swagger.v3.oas.models.parameters.Parameter["schema"]->io.swagger.v3.oas.models.media.JsonSchema["default"])
at com.fasterxml.jackson.databind.exc.InvalidDefinitionException.from(InvalidDefinitionException.java:77)
at com.fasterxml.jackson.databind.SerializerProvider.reportBadDefinition(SerializerProvider.java:1340)
at com.fasterxml.jackson.databind.ser.impl.UnsupportedTypeSerializer.serialize(UnsupportedTypeSerializer.java:35)
at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:732)
at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:770)
at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:184)
at io.swagger.v3.core.jackson.Schema31Serializer.serialize(Schema31Serializer.java:42)
at io.swagger.v3.core.jackson.Schema31Serializer.serialize(Schema31Serializer.java:12)
I'm not using swagger-core directly but using
springdoc-openapi-starter-webmvc-ui
(2.8.8) andspringwolf-kafka
(1.13.0) and both are usingswagger-core-jakarta
(2.2.30).Since using those versions, I have the following error when trying to access swagger :
I do have the
Jdk8Module
:When forcing
swagger-core-jakarta
to version 2.2.29 in my pom.xml, everything works fine.Is there something to change to have it working with 2.2.30 ?
Thanks
The text was updated successfully, but these errors were encountered: