Router should accept arrays or primitives a body payloads #54268
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:New Platform
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
The validation changes in #51919 seems to have broken the actual data pre-validation, and wrongly coerce anything to objects, causing any primitive or array send as post payload to convert to an empty object :
Sample test that fails:
with the actual error message being
Culprit seems to be:
kibana/src/core/server/http/router/validator/validator.ts
Lines 269 to 279 in 3bdbcd0
The text was updated successfully, but these errors were encountered: