Browse Source

Fix schema rules to be more strict

Jordi Boggiano 5 years ago
parent
commit
781cf75191
1 changed files with 6 additions and 2 deletions
  1. 6 2
      res/composer-schema.json

+ 6 - 2
res/composer-schema.json

@@ -140,12 +140,16 @@
                 "gitlab-token": {
                     "type": "object",
                     "description": "A hash of domain name => gitlab private tokens, typically {\"gitlab.com\":\"<token>\"}.",
-                    "additionalProperties": true
+                    "additionalProperties": {
+                        "type": "string"
+                    }
                 },
                 "bearer": {
                     "type": "object",
                     "description": "A hash of domain name => bearer authentication token, for example {\"example.com\":\"<token>\"}.",
-                    "additionalProperties": true
+                    "additionalProperties": {
+                        "type": "string"
+                    }
                 },
                 "disable-tls": {
                     "type": "boolean",