File tree Expand file tree Collapse file tree 3 files changed +32
-11
lines changed
Expand file tree Collapse file tree 3 files changed +32
-11
lines changed Original file line number Diff line number Diff line change @@ -51,10 +51,7 @@ var doc = `{
5151 "type": "object",
5252 "properties": {
5353 "data": {
54- "type": "object",
55- "additionalProperties": {
56- "type": "string"
57- }
54+ "$ref": "#/definitions/api.HealthCheckResponse"
5855 }
5956 }
6057 }
@@ -431,6 +428,17 @@ var doc = `{
431428 }
432429 }
433430 },
431+ "api.HealthCheckResponse": {
432+ "type": "object",
433+ "properties": {
434+ "commit": {
435+ "type": "string"
436+ },
437+ "tag": {
438+ "type": "string"
439+ }
440+ }
441+ },
434442 "api.UpdateMedia": {
435443 "type": "object",
436444 "required": [
Original file line number Diff line number Diff line change 4040 "type" : " object" ,
4141 "properties" : {
4242 "data" : {
43- "type" : " object" ,
44- "additionalProperties" : {
45- "type" : " string"
46- }
43+ "$ref" : " #/definitions/api.HealthCheckResponse"
4744 }
4845 }
4946 }
420417 }
421418 }
422419 },
420+ "api.HealthCheckResponse" : {
421+ "type" : " object" ,
422+ "properties" : {
423+ "commit" : {
424+ "type" : " string"
425+ },
426+ "tag" : {
427+ "type" : " string"
428+ }
429+ }
430+ },
423431 "api.UpdateMedia" : {
424432 "type" : " object" ,
425433 "required" : [
Original file line number Diff line number Diff line change @@ -8,6 +8,13 @@ definitions:
88 required :
99 - title
1010 type : object
11+ api.HealthCheckResponse :
12+ properties :
13+ commit :
14+ type : string
15+ tag :
16+ type : string
17+ type : object
1118 api.UpdateMedia :
1219 properties :
1320 title :
7077 - $ref : ' #/definitions/httputils.DataResponse'
7178 - properties :
7279 data :
73- additionalProperties :
74- type : string
75- type : object
80+ $ref : ' #/definitions/api.HealthCheckResponse'
7681 type : object
7782 summary : Check service status
7883 tags :
You can’t perform that action at this time.
0 commit comments