{
	"$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
		},
		"units": {
			"type": "array",
			"items": {
				"type": "object",
				"properties": {
					"id": {
						"type": "string"
					},
					"path": {
						"type": "string"
					},
					"plugin": {
						"type": "string"
					},
					"reason": {
						"type": "string",
						"enum": [
							"direct",
							"dependent",
							"global",
							"all",
							"group"
						]
					},
					"via": {
						"type": "array",
						"items": {
							"type": "string"
						}
					},
					"released": {
						"type": "boolean"
					},
					"tags": {
						"type": "array",
						"items": {
							"type": "string"
						}
					}
				},
				"required": [
					"id",
					"path",
					"plugin",
					"reason",
					"via",
					"released",
					"tags"
				],
				"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
			}
		}
	},
	"required": [
		"schema",
		"tool",
		"repo",
		"branch",
		"head",
		"build",
		"units",
		"unattributed",
		"warnings"
	],
	"additionalProperties": false
}
