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": {