Page MenuHomePhabricator

Tighten Guarantees in `GenericSchema.validateStatus`
Open, LowPublic

Description

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

Event Timeline

Change 823163 had a related patch set uploaded (by Cory Massaro; author: Cory Massaro):

[mediawiki/services/function-schemata@master] Fail to validate when unwelcome keys are present.

https://gerrit.wikimedia.org/r/823163

Change 823163 merged by jenkins-bot:

[mediawiki/services/function-schemata@master] Fail to validate when unwelcome keys are present.

https://gerrit.wikimedia.org/r/823163

Change 823189 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/tools/wikilambda-cli@master] Update function-schemata sub-module to HEAD (194e4da)

https://gerrit.wikimedia.org/r/823189

Change 823190 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/services/function-evaluator@master] Update function-schemata sub-module to HEAD (194e4da)

https://gerrit.wikimedia.org/r/823190

Change 823191 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/services/function-orchestrator@master] Update function-schemata sub-module to HEAD (194e4da)

https://gerrit.wikimedia.org/r/823191

Change 823192 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/WikiLambda@master] Update function-schemata sub-module to HEAD (194e4da)

https://gerrit.wikimedia.org/r/823192

Change 823194 had a related patch set uploaded (by Cory Massaro; author: Cory Massaro):

[mediawiki/services/function-orchestrator@master] Update function-schemata sub-module to HEAD (194e4da)

https://gerrit.wikimedia.org/r/823194

Change 823194 abandoned by Cory Massaro:

[mediawiki/services/function-orchestrator@master] Update function-schemata sub-module to HEAD (194e4da)

Reason:

https://gerrit.wikimedia.org/r/823194

Change 823191 merged by jenkins-bot:

[mediawiki/services/function-orchestrator@master] Update function-schemata sub-module to HEAD (194e4da)

https://gerrit.wikimedia.org/r/823191

Change 823190 merged by jenkins-bot:

[mediawiki/services/function-evaluator@master] Update function-schemata sub-module to HEAD (194e4da)

https://gerrit.wikimedia.org/r/823190

Change 823189 merged by jenkins-bot:

[mediawiki/tools/wikilambda-cli@master] Update function-schemata sub-module to HEAD (194e4da)

https://gerrit.wikimedia.org/r/823189

Change 823192 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Update function-schemata sub-module to HEAD (194e4da)

https://gerrit.wikimedia.org/r/823192