Legion2 / swagger-ui-action

Generate Swagger UI in a GitHub Actions workflow
MIT License
51 stars 6 forks source link

Support SwaggerUI V4? #376

Open melissarh57 opened 2 years ago

melissarh57 commented 2 years ago

I'd love to use this action, but with openapi 3.1, and it looks like swaggerUI V4 supports that. Any plan to update this action to use swaggerui v4 instead of v3? or any recommended alternatives?

Legion2 commented 2 years ago

Does swagger UI 4 also support older versions of openapi, 3.0 and older?

melissarh57 commented 2 years ago

Looks like they do support openapi 3.0! https://swagger.io/blog/news/what-s-new-in-swaggerui-v4-and-swaggereditor-v4/#:~:text=The%20v4%20releases%20will%20continue,code%20to%20support%20React%4017

I am having trouble finding answers to whether or not they support older than openapi 3.0

Legion2 commented 2 years ago

Ok then I think we should add an option to the action which allows to select the swagger ui version.

melissarh57 commented 2 years ago

I love it!

Legion2 commented 2 years ago

I just recognized that there is already an undocumented version option. But I don't know if the templating works with a new major version.

Legion2 commented 1 month ago

@melissarh57 have you checked that you can use swagger ui v4 using this parameter?

melissarh57 commented 1 month ago

@Legion2 thank you! I no longer have this use case since I have switched code bases, but I appreciate you reaching out!