mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-31 14:13:09 +02:00
fix(api): missing health field for route in docs and generated api code
This commit is contained in:
@@ -2033,6 +2033,70 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"HealthExtra": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"config": {
|
||||
"$ref": "#/definitions/LoadBalancerConfig"
|
||||
},
|
||||
"pool": {
|
||||
"type": "object",
|
||||
"additionalProperties": {}
|
||||
}
|
||||
}
|
||||
},
|
||||
"HealthJSON": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"config": {
|
||||
"$ref": "#/definitions/HealthCheckConfig"
|
||||
},
|
||||
"detail": {
|
||||
"type": "string"
|
||||
},
|
||||
"extra": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/HealthExtra"
|
||||
}
|
||||
],
|
||||
"x-nullable": true
|
||||
},
|
||||
"lastSeen": {
|
||||
"type": "integer"
|
||||
},
|
||||
"lastSeenStr": {
|
||||
"type": "string"
|
||||
},
|
||||
"latency": {
|
||||
"type": "number"
|
||||
},
|
||||
"latencyStr": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"started": {
|
||||
"type": "integer"
|
||||
},
|
||||
"startedStr": {
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"type": "string"
|
||||
},
|
||||
"uptime": {
|
||||
"type": "number"
|
||||
},
|
||||
"uptimeStr": {
|
||||
"type": "string"
|
||||
},
|
||||
"url": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"HealthMap": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
@@ -2491,6 +2555,14 @@ const docTemplate = `{
|
||||
"excluded": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"health": {
|
||||
"description": "for swagger",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/HealthJSON"
|
||||
}
|
||||
]
|
||||
},
|
||||
"healthcheck": {
|
||||
"$ref": "#/definitions/HealthCheckConfig"
|
||||
},
|
||||
@@ -3225,6 +3297,14 @@ const docTemplate = `{
|
||||
"excluded": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"health": {
|
||||
"description": "for swagger",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/HealthJSON"
|
||||
}
|
||||
]
|
||||
},
|
||||
"healthcheck": {
|
||||
"$ref": "#/definitions/HealthCheckConfig"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user