127 lines
2.6 KiB
JSON
127 lines
2.6 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"title": "Structured Media Builder: transcript",
|
|
"type": "object",
|
|
"properties": {
|
|
"schema_version": {
|
|
"const": "1.0"
|
|
},
|
|
"media_id": {
|
|
"type": "string",
|
|
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
|
|
},
|
|
"canonical_url": {
|
|
"type": "string",
|
|
"format": "uri",
|
|
"pattern": "^https://"
|
|
},
|
|
"language": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"rights": {
|
|
"type": "object",
|
|
"properties": {
|
|
"statement": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"license": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "uri",
|
|
"pattern": "^https://"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"usage_info": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "uri",
|
|
"pattern": "^https://"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"redistribution_allowed": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"required": [
|
|
"statement",
|
|
"license",
|
|
"usage_info",
|
|
"redistribution_allowed"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"input_sha256": {
|
|
"type": "string",
|
|
"pattern": "^[a-f0-9]{64}$"
|
|
},
|
|
"cues": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"cue_id": {
|
|
"type": "string",
|
|
"pattern": "^cue-[0-9]{6}$"
|
|
},
|
|
"source_cue_id": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"start_seconds": {
|
|
"type": "number",
|
|
"minimum": 0
|
|
},
|
|
"end_seconds": {
|
|
"type": "number",
|
|
"exclusiveMinimum": 0
|
|
},
|
|
"speaker": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"text": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
},
|
|
"required": [
|
|
"cue_id",
|
|
"source_cue_id",
|
|
"start_seconds",
|
|
"end_seconds",
|
|
"speaker",
|
|
"text"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"required": [
|
|
"schema_version",
|
|
"media_id",
|
|
"canonical_url",
|
|
"language",
|
|
"rights",
|
|
"input_sha256",
|
|
"cues"
|
|
],
|
|
"additionalProperties": false
|
|
}
|