From a95e15c294bd375b8bf6b5be2b4f778370ff69e8 Mon Sep 17 00:00:00 2001 From: ergebnis-bot Date: Fri, 29 Apr 2022 09:11:25 +0000 Subject: [PATCH] Enhancement: Update schema.json --- resource/schema.json | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/resource/schema.json b/resource/schema.json index 2636a4eb..666f6ca6 100644 --- a/resource/schema.json +++ b/resource/schema.json @@ -343,7 +343,7 @@ "properties": { "platform": { "type": "object", - "description": "This is an object of package name (keys) and version (values) that will be used to mock the platform packages on this machine.", + "description": "This is an object of package name (keys) and version (values) that will be used to mock the platform packages on this machine, the version can be set to false to make it appear like the package is not present.", "additionalProperties": { "type": [ "string", @@ -396,7 +396,7 @@ }, "github-protocols": { "type": "array", - "description": "A list of protocols to use for github.com clones, in priority order, defaults to [\"git\", \"https\", \"http\"].", + "description": "A list of protocols to use for github.com clones, in priority order, defaults to [\"https\", \"ssh\", \"git\"].", "items": { "type": "string" } @@ -417,9 +417,26 @@ }, "gitlab-token": { "type": "object", - "description": "An object of domain name => gitlab private tokens, typically {\"gitlab.com\":\"\"}.", + "description": "An object of domain name => gitlab private tokens, typically {\"gitlab.com\":\"\"}, or an object with username and token keys.", "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": { @@ -608,6 +625,14 @@ "consumer-secret": { "type": "string", "description": "The consumer-secret used for OAuth authentication" + }, + "access-token": { + "type": "string", + "description": "The OAuth token retrieved from Bitbucket's API, this is written by Composer and you should not set it nor modify it." + }, + "access-token-expiration": { + "type": "integer", + "description": "The generated token's expiration timestamp, this is written by Composer and you should not set it nor modify it." } } }