Page MenuHomePhabricator

Create a JsonBodyValidator if getParamSettings() returns body params
Open, Needs TriagePublic

Description

Comment In includes/Rest/Handler.php under getBodyValidator

ParamValidator has all kinds of $_GET/$_POST specific assumptions built in, e.g. it can't really differentiate between a string and an array with a single string element. If you want to only use it for documentation generation, that might work; using it for actual validation would require checking and fixing most ParamValidator type classes.

There are also performance implications to consider.