Steps to replicate the issue (include links if applicable):
- Define a "provider/validator":
"Mentorship": { "store": { "type": "wikipage", "args": [ "MediaWiki:GrowthExperimentsMentorship.json" ] }, "validator": { "type": "jsonschema", "args": [ "CommunityConfigurationExample/src/Schemas/schema_growth-experiments_mentorship.json" ] }, "type": "mw-config" }
CommunityConfigurationExample/src/Schemas/schema_growth-experiments_mentorship.json
{ "$schema": "https://json-schema.org/draft-07/schema#", "$id": "/communityconfigurationexample/newcomershomepage/1.0.0", "type": "object", "properties": { "GEHomepageSuggestedEditsIntroLinks": { "type": "object", "properties": { "createIntroLink":{ "type": "string" }, "imageIntroLink":{ "type": "string" } }, "additionalProperties": false }, "TestPropPageTitles": { "type": "array", "items": { "type": "string" } } }, "required": [ "GEHomepageSuggestedEditsIntroLinks" ], "additionalProperties": false }
- Try to store the following data in MediaWiki:GrowthExperimentsMentorship.json
{ "GEHomepageSuggestedEditsIntroLinks": { "createIntroLink": "ABBA", "imageIntroLink": "Help:CS1 errors" }, "TestPropPageTitles": [ "Page 1", "Page 2" ] }
What happens?:
An error is shown Object value found, but an array is required. Key: TestPropPageTitles
What should have happened instead?:
The data should be considered valid and stored.
Software version (skip for WMF-hosted wikis like Wikipedia):
master and main branches of CommunityConfiguration and CommunityConfigurationExample respectively