File tree 2 files changed +10
-2
lines changed 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 333
333
"operationId" : " liveness_probe_get_method_liveness_get" ,
334
334
"responses" : {
335
335
"200" : {
336
- "description" : " Successful Response " ,
336
+ "description" : " Service is alive " ,
337
337
"content" : {
338
338
"application/json" : {
339
339
"schema" : {
Original file line number Diff line number Diff line change @@ -117,7 +117,15 @@ def readiness_probe_get_method() -> ReadinessResponse:
117
117
return ReadinessResponse (ready = True , reason = "service is ready" )
118
118
119
119
120
- @router .get ("/liveness" )
120
+ get_liveness_responses : dict [int | str , dict [str , Any ]] = {
121
+ 200 : {
122
+ "description" : "Service is alive" ,
123
+ "model" : LivenessResponse ,
124
+ },
125
+ }
126
+
127
+
128
+ @router .get ("/liveness" , responses = get_liveness_responses )
121
129
def liveness_probe_get_method () -> LivenessResponse :
122
130
"""Live status of service."""
123
131
return LivenessResponse (alive = True )
You can’t perform that action at this time.
0 commit comments