sign: Update config-schema.json

This commit is contained in:
Julien Vincent 2024-02-18 15:07:54 +00:00
parent 431a4effa0
commit 1516c90aa9

View file

@ -366,11 +366,12 @@
"properties": { "properties": {
"backend": { "backend": {
"type": "string", "type": "string",
"description": "Which backend to use to create commit signatures" "enum": ["gpg", "ssh"],
"description": "The backend to use for signing commits"
}, },
"key": { "key": {
"type": "string", "type": "string",
"description": "The key parameter to pass to the signing backend. Overridden by `jj sign` parameter or by the global `--sign-with` option" "description": "The key the configured signing backend will use to to sign commits. Overridden by `jj sign` parameter or by the global `--sign-with` option"
}, },
"sign-all": { "sign-all": {
"type": "boolean", "type": "boolean",
@ -380,7 +381,38 @@
"backends": { "backends": {
"type": "object", "type": "object",
"description": "Tables of options to pass to specific signing backends", "description": "Tables of options to pass to specific signing backends",
"properties": {}, "properties": {
"gpg": {
"type": "object",
"properties": {
"program": {
"type": "string",
"description": "Path to the gpg program to be called",
"default": "gpg"
},
"allow-expired-keys": {
"type": "boolean",
"description": "Whether to consider signatures generated with an expired key as invalid",
"default": true
}
}
},
"ssh": {
"type": "object",
"properties": {
"program": {
"type": "string",
"description": "Path to the ssh-keygen program to be called",
"default": "ssh-keygen"
},
"allowed-signers": {
"type": "boolean",
"description": "Path to an allowed signers file used for signature verification",
"default": true
}
}
}
},
"additionalProperties": true "additionalProperties": true
} }
} }