Raw schema
{
"type": "object",
"properties": {
"items": {
"type": [
"null",
"array"
],
"items": {
"type": "object",
"properties": {
"project": {
"type": "string"
},
"version": {
"type": "string"
},
"patch": {
"type": "string"
},
"source": {
"type": "string"
},
"upstream": {
"type": "string"
},
"provenance": {
"type": [
"null",
"object"
],
"properties": {
"mr": {
"type": "string"
},
"commit": {
"type": "string"
},
"url": {
"type": "string"
},
"base": {
"type": "string"
},
"head": {
"type": "string"
},
"fetched": {
"type": "string"
},
"rerolled": {
"type": "string"
}
},
"additionalProperties": false
},
"merge_patch": {
"type": "string"
},
"title": {
"type": "string"
},
"base": {
"type": "string"
},
"resolutions": {
"type": [
"null",
"array"
],
"items": {
"type": "object",
"properties": {
"file": {
"type": "string"
},
"region": {
"type": "integer"
},
"choice": {
"type": "string"
},
"text": {
"type": "string"
},
"delete": {
"type": "boolean"
}
},
"required": [
"file",
"region"
],
"additionalProperties": false
}
}
},
"required": [
"project",
"version",
"patch"
],
"additionalProperties": false
},
"description": "Up to 50 patches to check. Each item has project, version, patch and title. project: webform or drupal/webform; drupal or core for Drupal core. version: the installed composer version, 1.13.0 or 11.4.5. patch: the diff text. This service downloads nothing, so fetch a URL patch yourself and send what came back. source: optional, the path or URL the patch was declared with. merge_patch: optional, the .diff form of a merge request, used for the merge of a re-roll while patch decides the verdict. provenance: optional, where a copied patch's bytes came from, {mr, commit, url, base, head, fetched, rerolled}. Send it when source is a local path. title: optional, echoed back. base: optional, the release the site had before the upgrade. A commit sha or a composer version, tried first as the merge base of a re-roll. Leave empty to build the items from composer_json and composer_lock."
},
"composer_json": {
"type": "string",
"description": "The contents of composer.json. Send the text; this server cannot read your filesystem. Its extra.patches becomes the item list, one item per patch."
},
"composer_lock": {
"type": "string",
"description": "The contents of composer.lock. It gives the installed version of each patched package."
},
"patches_file": {
"type": "string",
"description": "The text of the patches file, for a site on cweagans/composer-patches 2.x that keeps its patches out of composer.json. The path is in its own extra.composer-patches.patches-file, patches.json by default."
},
"patches_lock": {
"type": "string",
"description": "The text of patches.lock.json, which 2.x of the patch manager writes and applies from. Send it to judge what the site actually applies: it answers alone, over extra.patches and the patches file."
},
"patch_files": {
"type": "object",
"description": "The text of every patch the site declares, keyed by the source as written: a path (patches/x.patch) or its base name, or the URL. Fetch a URL patch yourself and send its text under that URL. For a merge request .patch URL, send its .diff form under a second key too.",
"additionalProperties": {
"type": "string"
}
},
"target_core": {
"type": "string",
"description": "Core the added code is checked against: a minor (11.4 or 11.4.x) or a release (11.4.5). A minor with no core release in the data is refused, and so is a major alone. latest checks no references. Defaults to the lock's drupal/core, else the version of a drupal item."
}
},
"additionalProperties": false
}