Files
go-sip/contracts/upstream/v1/oss-upload.schema.json
T

57 lines
1.1 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://go-sip.local/contracts/v1/oss-upload.schema.json",
"title": "Dispatcher-issued recording upload grant",
"type": "object",
"additionalProperties": false,
"properties": {
"kind": {
"const": "grant"
},
"upload_id": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"recording_id": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"upload_url": {
"type": "string",
"format": "uri",
"pattern": "^https://"
},
"required_headers": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"expires_at": {
"type": "string",
"format": "date-time"
},
"max_bytes": {
"type": "integer",
"minimum": 1
},
"object_binding": {
"type": "string",
"minLength": 1,
"maxLength": 256
}
},
"required": [
"kind",
"upload_id",
"recording_id",
"upload_url",
"required_headers",
"expires_at",
"max_bytes",
"object_binding"
]
}