From 3ead6c01197da9ec0793a9d7669cae8e2befdb8b Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 1 Jun 2022 21:32:29 +0200 Subject: [PATCH] Backport schema fixes for gitlab-token, fixes #10800 --- res/composer-schema.json | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/res/composer-schema.json b/res/composer-schema.json index 9516e4590..f3f0ca2a9 100644 --- a/res/composer-schema.json +++ b/res/composer-schema.json @@ -349,7 +349,18 @@ "type": "object", "description": "An object of domain name => gitlab private tokens, typically {\"gitlab.com\":\"\"}.", "additionalProperties": { - "type": "string" + "type": ["string", "object"], + "required": ["username", "token"], + "properties": { + "username": { + "type": "string", + "description": "The username used for GitLab authentication" + }, + "token": { + "type": "string", + "description": "The token used for GitLab authentication" + } + } } }, "gitlab-protocol": {