Page MenuHomePhabricator

Propagate Validator Errors as Z5s
Open, LowPublic


function-orchestrator code can be found at

Look for T296676 under src/.

Currently, when validation in the orchestrator fails, it surfaces a stock error. This error should be the Z5 produced by the validator's error formatter. Ideally, we would surface only the errors whose instancePath is longest, as these are likely to be the "real" errors. The errorFormatter can be found under function-schemata/javascript/src/errorFormatter.js.

For more context, consult the AJV documentation on errors.