You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, love the project idea, but while looking to bring this into an existing codebase, I hit a snag where it was giving a 500 internal server error when using Content-Type application/health+json. I would like to follow the rfc health check endpoint spec https://inadarei.github.io/rfc-healthcheck/.
The yaml spec for the endpoint is:
/api/health:
get:
summary: Healthcheck to determine health of API.
responses:
200:
description: The request's query parameters.
content:
application/health+json:
schema:
type: object
properties:
status:
type: string
example: "ok"
description:
type: string
example: Description of endpoint.
version:
type: string
example: "0.0.1"
releaseId:
type: string
example: "release-id"
notes:
type: array
items:
type: string
example: [""]
output:
type: string
example: "Output of error"
2022-09-26T21:49:33.007Z openapi-cop:proxy Received server response with status code 200
2022-09-26T21:49:33.008Z openapi-cop:proxy Validation results [GET /api/health]
{
"request": {
"valid": true,
"errors": null
}
}
If I change the Content-Type to application/json in the response, I get a 200 response, with a openapi-cop-validation-result containing response and responseHeaders objects.
I would be open to contributing if needed.
The text was updated successfully, but these errors were encountered:
Hello, love the project idea, but while looking to bring this into an existing codebase, I hit a snag where it was giving a 500 internal server error when using Content-Type
application/health+json
. I would like to follow the rfc health check endpoint spec https://inadarei.github.io/rfc-healthcheck/.The yaml spec for the endpoint is:
The curl logs are:
The server logs with verbose set to 1 are:
If I change the Content-Type to
application/json
in the response, I get a 200 response, with aopenapi-cop-validation-result
containingresponse
andresponseHeaders
objects.I would be open to contributing if needed.
The text was updated successfully, but these errors were encountered: