If anybody uses Spring Boot v3.4.0 with springdoc-openapi-starter-webmvc-ui v2.6.0 and gets similar error on the swagger page, update springdoc-openapi-starter-webmvc-ui to v2.7.0 should solve the issue.