diff --git a/handlers/schemas/UploadVOD.yaml b/handlers/schemas/UploadVOD.yaml index e528526da..8bf1d213a 100644 --- a/handlers/schemas/UploadVOD.yaml +++ b/handlers/schemas/UploadVOD.yaml @@ -16,6 +16,14 @@ properties: type: "string" target_segment_size_secs: type: "integer" + encryption: + type: "object" + properties: + encrypted_key: + type: "string" + required: + - "encrypted_key" + additionalProperties: false pipeline_strategy: type: string description: diff --git a/pipeline/coordinator.go b/pipeline/coordinator.go index 448c83370..263853fc0 100644 --- a/pipeline/coordinator.go +++ b/pipeline/coordinator.go @@ -79,7 +79,7 @@ type UploadJobPayload struct { } type EncryptionPayload struct { - EncryptedKey string + EncryptedKey string `json:"encrypted_key"` } // UploadJobResult is the object returned by the successful execution of an