Page MenuHomePhabricator

"templates" property for ResourceModules in extension.json schema
Closed, ResolvedPublic

Description

As far as I understand the extension.json schema, it is currently not allowed to set templates for ResourceModules entries. I did not test whether my changes to extension.json in https://gerrit.wikimedia.org/r/#/c/227187/ validate, but they do work, so if they don't validate (as I expect), the "templates" property should be added to the schema.

Event Timeline

Schnark raised the priority of this task from to Needs Triage.
Schnark updated the task description. (Show Details)
Schnark subscribed.

Change 228745 had a related patch set uploaded (by Legoktm):
registration: Document 'templates' property of ResourceModules objects

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

but they do work, so if they don't validate (as I expect), the "templates" property should be added to the schema.

Yup, the "ResourceModules" are sent directly to ResourceLoader with only a little bit of processing for path names and stuff.

Change 228745 merged by jenkins-bot:
registration: Document 'templates' property of ResourceModules objects

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