Merge "registration: Validate AutoloadNamespaces keys have trailing \"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 21 May 2018 19:28:51 +0000 (19:28 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 21 May 2018 19:28:51 +0000 (19:28 +0000)
docs/extension.schema.v1.json
docs/extension.schema.v2.json

index 0763e7d..bcfd2aa 100644 (file)
                },
                "AutoloadNamespaces": {
                        "type": "object",
-                       "description": "Mapping of PSR-4 compliant namespace to directory for autoloading"
+                       "description": "Mapping of PSR-4 compliant namespace to directory for autoloading",
+                       "patternProperties": {
+                               "^[A-Za-z0-9\\\\]+\\\\$": {
+                                       "type": "string"
+                               }
+                       },
+                       "additionalProperties": false
                },
                "AutoloadClasses": {
                        "type": "object"
index e13129b..31edbd0 100644 (file)
                },
                "AutoloadNamespaces": {
                        "type": "object",
-                       "description": "Mapping of PSR-4 compliant namespace to directory for autoloading"
+                       "description": "Mapping of PSR-4 compliant namespace to directory for autoloading",
+                       "patternProperties": {
+                               "^[A-Za-z0-9\\\\]+\\\\$": {
+                                       "type": "string"
+                               }
+                       },
+                       "additionalProperties": false
                },
                "AutoloadClasses": {
                        "type": "object"