From 4c15c79f624f8fc56faf16e39f99d79af5813603 Mon Sep 17 00:00:00 2001 From: Derek Petersen Date: Mon, 6 Apr 2026 18:47:40 -0700 Subject: [PATCH 1/2] Simplify source_video and audio_inputs to plain strings in video media spec source_video is now a string URL instead of a VideoRef object, and audio_inputs items are now strings instead of AudioRef objects. Removes the unused AudioRef schema. --- openapi.yaml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index a2b955b..ecbfc06 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -12719,13 +12719,13 @@ components: items: $ref: '#/components/schemas/VideoRef' source_video: - $ref: '#/components/schemas/VideoRef' - description: Source video to edit. + type: string + description: URL of the source video to edit. audio_inputs: - description: Array of audio inputs. + description: Array of audio input URLs. type: array items: - $ref: '#/components/schemas/AudioRef' + type: string VideoRef: type: object @@ -12735,13 +12735,6 @@ components: type: string description: URL of the video. - AudioRef: - type: object - required: ['audio'] - properties: - audio: - type: string - description: URL of the audio. VideoOutputFormat: type: string From 3e454f148cb3925c07d14bcbb0b9c54c5e81f875 Mon Sep 17 00:00:00 2001 From: Derek Petersen Date: Mon, 6 Apr 2026 18:50:01 -0700 Subject: [PATCH 2/2] Use oneOf to accept both string and object formats for source_video and audio_inputs The backend accepts both plain URL strings and legacy object formats ({"video": "url"} and {"audio": "url"}) for backward compatibility. Update the spec to reflect both accepted formats using oneOf. --- openapi.yaml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index ecbfc06..7c3f666 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -12719,13 +12719,17 @@ components: items: $ref: '#/components/schemas/VideoRef' source_video: - type: string - description: URL of the source video to edit. + description: Source video to edit. Accepts a URL string or an object with a "video" key. + oneOf: + - type: string + - $ref: '#/components/schemas/VideoRef' audio_inputs: - description: Array of audio input URLs. + description: Array of audio inputs. Each element accepts a URL string or an object with an "audio" key. type: array items: - type: string + oneOf: + - type: string + - $ref: '#/components/schemas/AudioRef' VideoRef: type: object @@ -12735,6 +12739,13 @@ components: type: string description: URL of the video. + AudioRef: + type: object + required: ['audio'] + properties: + audio: + type: string + description: URL of the audio. VideoOutputFormat: type: string