Custom RL modules can define their own parameters, so validating against the ResourceLoaderFileModule ones isn't going to work. We need to:
- Remove the "additionalProperties": false,
- Not validate parameters if a 'class' property is set.
Custom RL modules can define their own parameters, so validating against the ResourceLoaderFileModule ones isn't going to work. We need to:
Project | Branch | Lines +/- | Subject | |
---|---|---|---|---|
mediawiki/core | master | +165 -108 | registration: Support custom classes in "ResourceModules" schema |
According to https://stackoverflow.com/questions/9029524/json-schema-specify-field-is-required-based-on-value-of-another-field we might be able to do this using the v3 or v4 schemas..
Change 228753 had a related patch set uploaded (by Legoktm):
registration: Support custom classes in "ResourceModules" schema
Change 228753 merged by jenkins-bot:
registration: Support custom classes in "ResourceModules" schema