{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"type": "object",
	"properties": {
		"schema": {
			"type": "number",
			"const": 1
		},
		"tool": {
			"type": "string"
		},
		"repo": {
			"type": "string"
		},
		"branch": {
			"type": "string"
		},
		"head": {
			"type": "string"
		},
		"build": {
			"type": "object",
			"properties": {
				"base": {
					"type": [
						"string",
						"null"
					]
				},
				"baseSource": {
					"type": "string",
					"enum": [
						"cli",
						"push-before",
						"pr-merge-base",
						"merge-group",
						"forge-last-success",
						"local-merge-base",
						"none"
					]
				},
				"all": {
					"type": "boolean"
				},
				"globalInputs": {
					"type": "array",
					"items": {
						"type": "string"
					}
				}
			},
			"required": [
				"base",
				"baseSource",
				"all",
				"globalInputs"
			],
			"additionalProperties": false
		},
		"unattributed": {
			"type": "array",
			"items": {
				"type": "string"
			}
		},
		"warnings": {
			"type": "array",
			"items": {
				"type": "object",
				"properties": {
					"code": {
						"type": "string"
					},
					"message": {
						"type": "string"
					},
					"plugin": {
						"type": "string"
					},
					"unit": {
						"type": "string"
					}
				},
				"required": [
					"code",
					"message"
				],
				"additionalProperties": false
			}
		},
		"line": {
			"anyOf": [
				{
					"type": "object",
					"properties": {
						"rule": {
							"type": "string"
						},
						"kind": {
							"type": "string",
							"enum": [
								"default",
								"maintenance"
							]
						},
						"channel": {
							"type": [
								"string",
								"null"
							]
						},
						"channelKind": {
							"anyOf": [
								{
									"type": "string",
									"enum": [
										"build",
										"nightly"
									]
								},
								{
									"type": "null"
								}
							]
						},
						"cut": {
							"type": [
								"string",
								"null"
							]
						},
						"maxBump": {
							"anyOf": [
								{
									"type": "string",
									"enum": [
										"minor",
										"patch"
									]
								},
								{
									"type": "null"
								}
							]
						},
						"absolute": {
							"anyOf": [
								{
									"type": "object",
									"properties": {
										"unit": {
											"type": [
												"string",
												"null"
											]
										},
										"group": {
											"type": [
												"string",
												"null"
											]
										},
										"major": {
											"type": "number"
										},
										"minor": {
											"type": "number"
										}
									},
									"required": [
										"unit",
										"group",
										"major"
									],
									"additionalProperties": false
								},
								{
									"type": "null"
								}
							]
						}
					},
					"required": [
						"rule",
						"kind",
						"channel",
						"channelKind",
						"cut",
						"maxBump",
						"absolute"
					],
					"additionalProperties": false
				},
				{
					"type": "null"
				}
			]
		},
		"units": {
			"type": "array",
			"items": {
				"type": "object",
				"properties": {
					"id": {
						"type": "string"
					},
					"path": {
						"type": "string"
					},
					"plugin": {
						"type": "string"
					},
					"scheme": {
						"type": "string"
					},
					"tags": {
						"type": "array",
						"items": {
							"type": "string"
						}
					},
					"group": {
						"type": [
							"string",
							"null"
						]
					},
					"affected": {
						"anyOf": [
							{
								"type": "object",
								"properties": {
									"reason": {
										"type": "string",
										"enum": [
											"direct",
											"dependent",
											"global",
											"all",
											"group"
										]
									},
									"via": {
										"type": "array",
										"items": {
											"type": "string"
										}
									}
								},
								"required": [
									"reason",
									"via"
								],
								"additionalProperties": false
							},
							{
								"type": "null"
							}
						]
					},
					"kind": {
						"type": "string",
						"enum": [
							"prerelease",
							"rebuild",
							"none"
						]
					},
					"baseTag": {
						"type": [
							"string",
							"null"
						]
					},
					"lineBaseTag": {
						"type": [
							"string",
							"null"
						]
					},
					"from": {
						"type": [
							"string",
							"null"
						]
					},
					"bump": {
						"anyOf": [
							{
								"type": "string",
								"enum": [
									"major",
									"minor",
									"patch"
								]
							},
							{
								"type": "null"
							}
						]
					},
					"releaseAs": {
						"type": [
							"string",
							"null"
						]
					},
					"propagatedFrom": {
						"type": "array",
						"items": {
							"type": "string"
						}
					},
					"absorbedFrom": {
						"type": "array",
						"items": {
							"type": "string"
						}
					},
					"next": {
						"type": [
							"string",
							"null"
						]
					},
					"version": {
						"type": [
							"string",
							"null"
						]
					},
					"cut": {
						"type": [
							"string",
							"null"
						]
					},
					"sha": {
						"type": "string"
					},
					"changes": {
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"sha": {
									"type": "string"
								},
								"type": {
									"type": "string"
								},
								"breaking": {
									"type": "boolean"
								},
								"scope": {
									"type": "string"
								},
								"subject": {
									"type": "string"
								},
								"notes": {
									"type": "string"
								},
								"pr": {
									"type": "number"
								},
								"via": {
									"type": "string"
								},
								"releaseAs": {
									"type": "string"
								},
								"units": {
									"type": "array",
									"items": {
										"type": "string"
									}
								},
								"files": {
									"type": "array",
									"items": {
										"type": "string"
									}
								}
							},
							"required": [
								"type",
								"breaking",
								"subject"
							],
							"additionalProperties": false
						}
					}
				},
				"required": [
					"id",
					"path",
					"plugin",
					"scheme",
					"tags",
					"group",
					"affected",
					"kind",
					"baseTag",
					"lineBaseTag",
					"from",
					"bump",
					"releaseAs",
					"propagatedFrom",
					"absorbedFrom",
					"next",
					"version",
					"cut",
					"sha",
					"changes"
				],
				"additionalProperties": false
			}
		},
		"groups": {
			"type": "array",
			"items": {
				"type": "object",
				"properties": {
					"name": {
						"type": "string"
					},
					"members": {
						"type": "array",
						"items": {
							"type": "string"
						}
					},
					"baseTag": {
						"type": [
							"string",
							"null"
						]
					},
					"from": {
						"type": [
							"string",
							"null"
						]
					},
					"bump": {
						"anyOf": [
							{
								"type": "string",
								"enum": [
									"major",
									"minor",
									"patch"
								]
							},
							{
								"type": "null"
							}
						]
					},
					"next": {
						"type": [
							"string",
							"null"
						]
					},
					"version": {
						"type": [
							"string",
							"null"
						]
					},
					"cut": {
						"type": [
							"string",
							"null"
						]
					}
				},
				"required": [
					"name",
					"members",
					"baseTag",
					"from",
					"bump",
					"next",
					"version",
					"cut"
				],
				"additionalProperties": false
			}
		},
		"released": {
			"type": "array",
			"items": {
				"type": "object",
				"properties": {
					"id": {
						"type": "string"
					},
					"path": {
						"type": "string"
					},
					"version": {
						"type": "string"
					},
					"tag": {
						"type": "string"
					},
					"releaseTag": {
						"type": "string"
					},
					"floatingTags": {
						"type": "array",
						"items": {
							"type": "string"
						}
					},
					"releaseSha": {
						"type": "string"
					},
					"catchUp": {
						"type": "boolean"
					},
					"forge": {
						"anyOf": [
							{
								"type": "object",
								"properties": {
									"pr": {
										"anyOf": [
											{
												"type": "object",
												"properties": {
													"number": {
														"type": "number"
													},
													"url": {
														"type": "string"
													}
												},
												"required": [
													"number",
													"url"
												],
												"additionalProperties": false
											},
											{
												"type": "null"
											}
										],
										"description": "PR that merged the release commit, else null."
									},
									"release": {
										"anyOf": [
											{
												"type": "object",
												"properties": {
													"url": {
														"type": "string"
													}
												},
												"required": [
													"url"
												],
												"additionalProperties": false
											},
											{
												"type": "null"
											}
										],
										"description": "Forge release of the tag, else null. Null also for a release that a dry run would create."
									}
								},
								"required": [
									"pr",
									"release"
								],
								"additionalProperties": false
							},
							{
								"type": "null"
							}
						]
					},
					"line": {
						"type": "string",
						"enum": [
							"default",
							"maintenance"
						]
					},
					"prerelease": {
						"type": "boolean"
					},
					"latest": {
						"type": "boolean"
					}
				},
				"required": [
					"id",
					"path",
					"version",
					"tag",
					"releaseTag",
					"floatingTags",
					"releaseSha",
					"catchUp",
					"forge",
					"line",
					"prerelease",
					"latest"
				],
				"additionalProperties": false
			}
		}
	},
	"required": [
		"schema",
		"tool",
		"repo",
		"branch",
		"head",
		"build",
		"unattributed",
		"warnings",
		"line",
		"units",
		"groups",
		"released"
	],
	"additionalProperties": false
}
