javalin / javalin-openapi

Annotation processor for compile-time OpenAPI & JsonSchema, with out-of-the-box support for Javalin 5.x, Swagger & ReDoc
https://github.com/javalin/javalin-openapi/wiki
Apache License 2.0
45 stars 17 forks source link

Version conflict between OpenAPI and Swagger #186

Closed Buried-In-Code closed 1 year ago

Buried-In-Code commented 1 year ago

When using the latest version (v5.5.0) the version of the OpenAPI generated is "3.1.0" however this isn't supported by the version of Swagger shipped. OpenAPI 3.1.0 is only currently supported in the unreleased v5 of Swagger. Swagger to OpenAPI support table

From the Swagger-UI repo

Fix

As there isn't a released version of swagger-ui to support openapi 3.1.x I would suggest rolling back 553ef56 until swagger-ui v5 is released.

Testing

Error Message

Error message when using OpenAPI 3.1.0

New SwaggerUI site

Works when using the new swagger-ui site

dzikoysk commented 1 year ago

Thanks, I didn't notice that Swagger UI refuses to parse 3.1.0.