Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server: implement OpenAPI 3.0 #959

Open
plyr4 opened this issue Mar 22, 2024 · 1 comment
Open

server: implement OpenAPI 3.0 #959

plyr4 opened this issue Mar 22, 2024 · 1 comment
Labels
enhancement Indicates an improvement to a feature

Comments

@plyr4
Copy link
Contributor

plyr4 commented Mar 22, 2024

Description

Vela currently uses Swagger, but should consider migrating to OpenAPI 3.0 at some point.

It would require server and worker changes, to code and CI, processes, docs likely too. More work than I'd like to do but it may be worth it in the long run.

Swagger 3.1.0 supports OAS 3.*.* so it might not be that bad https://swagger.io/specification/

Why?

Future-proofing, mostly, getting with the times.

@plyr4 plyr4 added the enhancement Indicates an improvement to a feature label Mar 22, 2024
@plyr4 plyr4 changed the title implement OpenAPI 3.0 server: implement OpenAPI 3.0 Mar 22, 2024
@wass3r
Copy link
Collaborator

wass3r commented Apr 25, 2024

just to clarify, since it's a bit confusing. we are currently producing Swagger 2.0 specs (via https://github.com/go-swagger/go-swagger - it only supports 2.0). Swagger 2.0 is the predecessor of OpenAPI 3.x.

OpenAPI extends the capabilities of its predecessor, Swagger, by offering a more comprehensive and standardized approach to API description.12

it's confusing because Swagger is also the name of a software framework and API tools.

there's definitely some overlap in terms of compatibility between the two, but i think we'd have to ditch our current tool and look for something else, which might not rely on marking up code the way we do today.

Footnotes

  1. https://apidog.com/blog/swagger-vs-openapi/

  2. https://blog.postman.com/openapi-vs-swagger/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Indicates an improvement to a feature
Projects
None yet
Development

No branches or pull requests

2 participants