{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"type": "object",
	"properties": {
		"schema": {
			"type": "number",
			"const": 1
		},
		"unit": {
			"anyOf": [
				{
					"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
				},
				{
					"type": "null"
				}
			]
		},
		"group": {
			"anyOf": [
				{
					"type": "object",
					"properties": {
						"name": {
							"type": "string"
						},
						"members": {
							"type": "array",
							"items": {
								"type": "string"
							}
						}
					},
					"required": [
						"name",
						"members"
					],
					"additionalProperties": false
				},
				{
					"type": "null"
				}
			]
		},
		"introduced": {
			"type": [
				"string",
				"null"
			]
		},
		"nextSource": {
			"anyOf": [
				{
					"type": "string",
					"enum": [
						"bump",
						"initial",
						"release-as"
					]
				},
				{
					"type": "null"
				}
			]
		},
		"files": {
			"type": "array",
			"items": {
				"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",
					"files"
				],
				"additionalProperties": false
			}
		},
		"propagatedFrom": {
			"type": "array",
			"items": {
				"type": "object",
				"properties": {
					"id": {
						"type": "string"
					},
					"pinned": {
						"type": [
							"boolean",
							"null"
						]
					}
				},
				"required": [
					"id",
					"pinned"
				],
				"additionalProperties": false
			}
		},
		"releaseAs": {
			"type": "array",
			"items": {
				"type": "object",
				"properties": {
					"sha": {
						"type": "string"
					},
					"version": {
						"type": "string"
					},
					"qualified": {
						"type": "boolean"
					},
					"applied": {
						"type": "boolean"
					}
				},
				"required": [
					"version",
					"qualified",
					"applied"
				],
				"additionalProperties": false
			}
		},
		"warnings": {
			"type": "array",
			"items": {
				"type": "object",
				"properties": {
					"code": {
						"type": "string"
					},
					"message": {
						"type": "string"
					},
					"plugin": {
						"type": "string"
					},
					"unit": {
						"type": "string"
					}
				},
				"required": [
					"code",
					"message"
				],
				"additionalProperties": false
			}
		}
	},
	"required": [
		"schema",
		"unit",
		"group",
		"introduced",
		"nextSource",
		"files",
		"changes",
		"propagatedFrom",
		"releaseAs",
		"warnings"
	],
	"additionalProperties": false
}
