Allow templates in ResourceModules to be array in extension registration
authorPaladox <thomasmulhall410@yahoo.com>
Mon, 28 Mar 2016 09:57:31 +0000 (10:57 +0100)
committerPaladox <thomasmulhall410@yahoo.com>
Mon, 28 Mar 2016 09:57:31 +0000 (10:57 +0100)
Flow doesent do this for example

"example.template": "example.handlebars"

it does

"example.handlebars" so lets make it allow arrays.

Caught from
https://integration.wikimedia.org/ci/job/mwext-Flow-testextension-php55/267/console

Change-Id: Ie8a45a00168349a9ee303e272ba82cb2fd225744

docs/extension.schema.json

index 4218e8a..a743afa 100644 (file)
                                                                        ]
                                                                },
                                                                "templates": {
-                                                                       "type": "object",
+                                                                       "type": ["object", "array"],
                                                                        "description": "Templates to be loaded for client-side usage"
                                                                },
                                                                "targets": {