{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"$id": "https://www.smpte-ra.org/json-schema/2067-206/2023/simple-scheme/timed-events-resource",
	"$comment": "See SMPTE AG 30 (https://www.smpte.org/about/policies-and-governance) for copyright and license information.",
	"title": "SMPTE ST 2067-206 'Simple Scheme' Timed Events Resource Schema",
	"type": "object",
	"properties": {
		"id": {
			"type": "string",
			"format": "uri"
		},
		"editRate": {
			"$ref": "#/$defs/EditRateType"
		},
		"objects": {
			"type": "array",
			"minItems": 0,
			"items": {
				"type": "object",
				"properties": {
					"id": {
						"$ref": "#/$defs/BasicIdType"
					}
				},
				"required": [
					"id"
				]
			}
		},
		"events": {
			"type": "array",
			"minItems": 0,
			"items": {
				"type": "object",
				"properties": {
					"id": {
						"$ref": "#/$defs/BasicIdType"
					},
					"startCount": {
						"$ref": "#/$defs/CountType"
					},
					"endCount": {
						"$ref": "#/$defs/CountType"
					}
				},
				"required": [
					"id"
				]
			}
		}
	},
	"required": [
		"id",
		"editRate",
		"objects",
		"events"
	],
	"$defs": {
		"BasicIdType": {
			"type": "string",
			"pattern": "^[^,]*$"
		},
		"EditRateType": {
			"type": "string",
			"pattern": "^[1-9][0-9]* [1-9][0-9]*$"
		},
		"CountType": {
			"type": "string",
			"pattern": "^-?(0|[1-9][0-9]*)$"
		}
	}
}