Skip to content

fix(health): keep report fields intact in json responses - #8

Open
ephraimduncan wants to merge 1 commit into
openstatusHQ:mainfrom
ephraimduncan:fix/protect-health-json-fields
Open

ephraimduncan wants to merge 1 commit into
openstatusHQ:mainfrom
ephraimduncan:fix/protect-health-json-fields

Conversation

@ephraimduncan

Copy link
Copy Markdown

Unhealthy health responses keep their report status and fields after JSON serialization. Previously, an extension's top-level toJSON could change the body to {"status":"ok"} while HTTP status remained 503.

The renderer ignores that top-level method. Nested dates and custom JSON values keep their normal serialization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant