function-schemata code can be found at https://gerrit.wikimedia.org/g/mediawiki/services/function-schemata
validateStatus (look for this task's ID in javascript/src/schema.js) should
- fail when there is an unexpected key
- signal which key failed if a sub-validator was the culprit
- not fail if an "optional" key is absent