Skip to content

Commit 3e454f1

Browse files
committed
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.
1 parent 4c15c79 commit 3e454f1

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

openapi.yaml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12719,13 +12719,17 @@ components:
1271912719
items:
1272012720
$ref: '#/components/schemas/VideoRef'
1272112721
source_video:
12722-
type: string
12723-
description: URL of the source video to edit.
12722+
description: Source video to edit. Accepts a URL string or an object with a "video" key.
12723+
oneOf:
12724+
- type: string
12725+
- $ref: '#/components/schemas/VideoRef'
1272412726
audio_inputs:
12725-
description: Array of audio input URLs.
12727+
description: Array of audio inputs. Each element accepts a URL string or an object with an "audio" key.
1272612728
type: array
1272712729
items:
12728-
type: string
12730+
oneOf:
12731+
- type: string
12732+
- $ref: '#/components/schemas/AudioRef'
1272912733

1273012734
VideoRef:
1273112735
type: object
@@ -12735,6 +12739,13 @@ components:
1273512739
type: string
1273612740
description: URL of the video.
1273712741

12742+
AudioRef:
12743+
type: object
12744+
required: ['audio']
12745+
properties:
12746+
audio:
12747+
type: string
12748+
description: URL of the audio.
1273812749

1273912750
VideoOutputFormat:
1274012751
type: string

0 commit comments

Comments
 (0)