Skip to content

Commit c808ce3

Browse files
author
Alan Christie
committed
fix: Version category now protocol
1 parent 0992de5 commit c808ce3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

app/app.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,8 @@ class EventStreamPostRequestBody(BaseModel):
153153
class EventStreamGetVersionResponse(BaseModel):
154154
"""/event-stream/version/ GET response."""
155155

156-
# Category of the service (enumeration).
157-
# We're a 'WEBSOCKET'
158-
category: str
156+
# Protocol of the service (enumeration).
157+
protocol: str
159158
# Our name (ours is 'Python FastAPI')
160159
name: str
161160
# Our version number
@@ -503,9 +502,9 @@ async def _consume(
503502

504503
@app_internal.get("/event-stream/version/", status_code=status.HTTP_200_OK)
505504
def get_es_version() -> EventStreamGetVersionResponse:
506-
"""Returns our version information."""
505+
"""Returns our version information. We're a 'WEBSOCKET'."""
507506
return EventStreamGetVersionResponse(
508-
category="WEBSOCKET",
507+
protocol="WEBSOCKET",
509508
name="Python FastAPI",
510509
version=_VERSION,
511510
)

0 commit comments

Comments
 (0)