fastify / fastify-swagger-ui

Serve Swagger-UI for Fastify
MIT License
132 stars 40 forks source link

openapi 3.1 support #67

Closed maxgurewitz closed 1 year ago

maxgurewitz commented 1 year ago

Prerequisites

🚀 Feature Proposal

Hi all. This project doesn't seem to support openapi 3.1.

Screen Shot 2023-05-29 at 10 13 17 PM

However swagger-ui seems to support openapi 3.1.

https://github.com/swagger-api/swagger-ui/pull/8367/files

Is addressing this easy? Thank you.

Motivation

No response

Example

No response

Uzlopak commented 1 year ago

Well you could just patch the version check, but we need to check what the differences are and maybe see if the new features are handled properly.

mcollina commented 1 year ago

We should update to swagger-ui v5, but I'm not sure this was released yet.

qqilihq commented 1 year ago

Swagger UI 5.0.0 is available since a few hours.

We've already been using a patched fastify-swagger-ui library during the last few weeks, as we needed OpenAPI 3.1 support. This worked well for us. In case anybody is interested for the time being, I've just updated it to use the final swagger-ui v5.0.0

NPM: @lineupr/fastify-swagger-ui GitHub: https://github.com/LineUpr/fastify-swagger-ui

Uzlopak commented 1 year ago

@qqilihq

Ok, dependabot merged automatically swagger-ui. Does anything needs to be patched?

qqilihq commented 1 year ago

@Uzlopak Just changing to "swagger-ui-dist": "5.0.0" was sufficient for us. (diff)

mcollina commented 1 year ago

I've just shipped v1.9.0.