Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112 changes: 110 additions & 2 deletions test/Fixture/Vendor/Composer/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
"additionalProperties": {
"anyOf": [
{
"$ref": "#/definitions/repository"
"$ref": "#/definitions/anonymous-repository"
},
{
"type": "boolean",
Expand Down Expand Up @@ -549,6 +549,45 @@
"fail"
],
"description": "Whether abandoned packages should be ignored, reported as problems or cause an audit failure."
},
"ignore-severity": {
"type": "array",
"description": "A list of severities for which advisories with matching severity will be ignored, e.g. critical, high, medium, low, or none.",
"items": {
"type": "string"
}
},
"ignore-unreachable": {
"type": "boolean",
"description": "Whether repositories that are unreachable or return a non-200 status code shouldbe ignored or not."
},
"block-insecure": {
"type": "boolean",
"description": "Whether insecure versions should be blocked during a composer update/required command or not.",
"default": true
},
"block-abandoned": {
"type": "boolean",
"description": "Whether abandoned versions should be blocked during a composer update/required command or not.",
"default": false
},
"ignore-abandoned": {
"anyOf": [
{
"type": "object",
"description": "A list of abandoned package names (as key) mapping to a reason explaining why they are ignored.",
"additionalProperties": {
"type": "string"
}
},
{
"type": "array",
"description": "A set of abandoned package names that are reported but let the audit command pass.",
"items": {
"type": "string"
}
}
]
}
}
},
Expand Down Expand Up @@ -647,6 +686,29 @@
}
}
},
"forgejo-token": {
"type": "object",
"description": "An object of domain name => forgejo username/access token, typically {\"codeberg.org\":{\"username\": \"<username>\", \"token\": \"<access-token>\"}}.",
"additionalProperties": {
"type": [
"object"
],
"required": [
"username",
"token"
],
"properties": {
"username": {
"type": "string",
"description": "The username used for Forgejo authentication"
},
"token": {
"type": "string",
"description": "The access token used for Forgejo authentication"
}
}
}
},
"disable-tls": {
"type": "boolean",
"description": "Defaults to `false`. If set to true all HTTPS URLs will be tried with HTTP instead and no network level encryption is performed. Enabling this is a security risk and is NOT recommended. The better way is to enable the php_openssl extension in php.ini."
Expand Down Expand Up @@ -825,6 +887,13 @@
"type": "string"
}
},
"forgejo-domains": {
"type": "array",
"description": "A list of domains to use in forgejo mode. This is used for custom Forgejo setups, defaults to [\"codeberg.org\"].",
"items": {
"type": "string"
}
},
"bitbucket-oauth": {
"type": "object",
"description": "An object of domain name => {\"consumer-key\": \"...\", \"consumer-secret\": \"...\"}.",
Expand Down Expand Up @@ -897,6 +966,12 @@
"boolean"
],
"description": "Defaults to false. If set to true, Composer will allow install when lock file is not up to date with the latest changes in composer.json."
},
"update-with-minimal-changes": {
"type": [
"boolean"
],
"description": "Defaults to false. If set to true, Composer will only perform absolutely necessary changes to transitive dependencies during update."
}
}
},
Expand Down Expand Up @@ -1146,13 +1221,30 @@
}
]
},
"anonymous-repository": {
"allOf": [
{
"$ref": "#/definitions/repository"
},
{
"not": {
"required": [
"name"
]
}
}
]
},
"composer-repository": {
"type": "object",
"required": [
"type",
"url"
],
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -1196,6 +1288,9 @@
"url"
],
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
Expand All @@ -1208,7 +1303,8 @@
"hg",
"fossil",
"perforce",
"svn"
"svn",
"forgejo"
]
},
"url": {
Expand Down Expand Up @@ -1283,6 +1379,9 @@
"url"
],
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -1349,6 +1448,9 @@
"url"
],
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -1382,6 +1484,9 @@
"url"
],
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -1418,6 +1523,9 @@
"package"
],
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
Expand Down