Skip to content

Commit

Permalink
autogen(openapi): regenerate swagger spec and internal client
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
ory-bot committed Jun 7, 2023
1 parent baeecc6 commit 97e9660
Show file tree
Hide file tree
Showing 6 changed files with 171 additions and 51 deletions.
16 changes: 6 additions & 10 deletions internal/httpclient/client/health/health_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

78 changes: 43 additions & 35 deletions internal/httpclient/client/health/is_instance_alive_responses.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

79 changes: 78 additions & 1 deletion internal/httpclient/client/health/is_instance_ready_responses.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions internal/httpclient/models/unexpected_error.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions spec/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@
},
"type": "object"
},
"unexpectedError": {
"type": "string"
},
"version": {
"properties": {
"version": {
Expand Down
19 changes: 14 additions & 5 deletions spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"/health/alive": {
"get": {
"description": "This endpoint returns a 200 status code when the HTTP server is up running.\nThis status does currently not include checks whether the database connection is working.\n\nIf the service supports TLS Edge Termination, this endpoint does not require the\n`X-Forwarded-Proto` header to be set.\n\nBe aware that if you are running multiple nodes of this service, the health status will never\nrefer to the cluster state, only to a single instance.",
"produces": ["application/json"],
"produces": ["application/json", "text/plain"],
"tags": ["health"],
"summary": "Check alive status",
"operationId": "isInstanceAlive",
Expand All @@ -91,10 +91,10 @@
"$ref": "#/definitions/healthStatus"
}
},
"500": {
"description": "genericError",
"default": {
"description": "unexpectedError",
"schema": {
"$ref": "#/definitions/genericError"
"$ref": "#/definitions/unexpectedError"
}
}
}
Expand All @@ -103,7 +103,7 @@
"/health/ready": {
"get": {
"description": "This endpoint returns a 200 status code when the HTTP server is up running and the environment dependencies (e.g.\nthe database) are responsive as well.\n\nIf the service supports TLS Edge Termination, this endpoint does not require the\n`X-Forwarded-Proto` header to be set.\n\nBe aware that if you are running multiple nodes of this service, the health status will never\nrefer to the cluster state, only to a single instance.",
"produces": ["application/json"],
"produces": ["application/json", "text/plain"],
"tags": ["health"],
"summary": "Check readiness status",
"operationId": "isInstanceReady",
Expand All @@ -119,6 +119,12 @@
"schema": {
"$ref": "#/definitions/healthNotReadyStatus"
}
},
"default": {
"description": "unexpectedError",
"schema": {
"$ref": "#/definitions/unexpectedError"
}
}
}
}
Expand Down Expand Up @@ -424,6 +430,9 @@
}
}
},
"unexpectedError": {
"type": "string"
},
"version": {
"type": "object",
"properties": {
Expand Down

0 comments on commit 97e9660

Please sign in to comment.