Skip to content

websockets? #2947

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

Closed
JC3 opened this issue Jun 16, 2022 · 3 comments
Closed

websockets? #2947

JC3 opened this issue Jun 16, 2022 · 3 comments

Comments

@JC3
Copy link

JC3 commented Jun 16, 2022

is there a proposal to add websocket endpoint descriptions?

i couldn't find anything about them in the spec (which actually seems kind of strange...), although this is my first time looking through it.

@darrelmiller
Copy link
Member

OpenAPI describes HTTP APIs. WebSockets is a different protocol and therefore out of scope.

@JC3
Copy link
Author

JC3 commented Jun 28, 2022

OpenAPI describes HTTP APIs. WebSockets is a different protocol and therefore out of scope.

makes sense, but also, websockets are so common in the back-end context that omitting them leaves kind of a big gap in the spec universe.

openapi's scope could be expanded; the definition of the scope is in our control, after all.

maybe an addition allowing just a declaration of non-http service endpoints, with the specific details of said endpoints still remaining out of scope.

@webron
Copy link
Member

webron commented Jun 28, 2022

Given our focus currently, it's unlikely that we'll change the scope of the OpenAPI. The scope is actually not within our control but is part of the charter which is a bit more involved to modify (not impossible, just takes more work). We're not saying there's no gap, but at least to some extent, other specs like AsyncAPI may be better suited to fill the gap (if they haven't already).

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

No branches or pull requests

3 participants