BTW, CHATGPT says : To check compatibility for Spring Boot 2.5 with OpenAPI Generator 7.2, here's what I found:
SpringDoc OpenAPI: The last official version that supports Spring Boot 2.x is springdoc-openapi 1.6.x. If you're using Spring Boot 2.5, upgrading to this version of SpringDoc OpenAPI should work. Any version higher than that would require moving to Spring Boot 3.x
OpenAPI Generator 7.2: It should work with Spring Boot 2.5 as OpenAPI Generator 7.x mainly introduces enhancements and bug fixes that are not necessarily tied to the Spring Boot version. However, SpringDoc and OpenAPI Generator are separate projects, so the compatibility of the generated code with your specific Spring Boot version may depend on configurations.