Backport docs/extension.schema.v2.json fixes
authorTim Starling <tstarling@wikimedia.org>
Mon, 18 May 2020 04:18:14 +0000 (14:18 +1000)
committerReedy <reedy@wikimedia.org>
Tue, 26 May 2020 00:42:15 +0000 (01:42 +0100)
* Fix the type of "Hooks" to not accept string (it never would've
  worked)
* Fixed the lack of "services" from RestRoutes ObjectFactory specs,
  since RestRoutes and HookHandlers is supposed to be the same.

Bug: T240307
Change-Id: I1a8657ff9fd14618c6709dbab62c3b4ee9f659a5

docs/extension.schema.v2.json

index 56d274b..35e5570 100644 (file)
                        "type": "object"
                },
                "Hooks": {
-                       "type": [ "string", "object" ],
+                       "type": "object",
                        "description": "Hooks this extension uses (mapping of hook name to callback)"
                },
                "JobClasses": {
                                        "args": {
                                                "type": "array",
                                                "description": "The arguments passed to the handler constructor or factory"
+                                       },
+                                       "services": {
+                                               "type": "array",
+                                               "description": "If supplied and non-empty, the named services are requested from the service container and prepended before 'args'."
                                        }
                                }
                        }