Nevon / express-physical

Healthcheck middleware for Express 🌡

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Don't change casing of keys in `info`

Nevon opened this issue · comments

The info section of the response is reformatted as snake case during serialization.

{
  "name": "Circuit breakers",
   "healthy": false,
  "actionable": true,
  "type": "SELF",
  "severity": "CRITICAL",
  "message": "Circuit Orders/Feed/all is OPEN. Is CRITICAL due to usage of 75% (3/4)",
  "info": {
    "servicing_a_p_i_order_by_persona": "closed",
    "orders_feed_all": "open"
  }
}

Since that entire object is user-supplied and can be of any format, perhaps the keys should not be reformatted.