Skip to content

Commit 76823cc

Browse files
committed
TCI - add file upload to spec
1 parent a92d0af commit 76823cc

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

openapi.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -3242,6 +3242,26 @@ components:
32423242
description: 'Code snippet to execute. '
32433243
example: "print('Hello, world!')"
32443244
type: string
3245+
files:
3246+
description: Files to upload to the session. If present, files will be uploaded before executing the given code.
3247+
items:
3248+
properties:
3249+
content:
3250+
type: string
3251+
encoding:
3252+
description: Encoding of the file content. Use `string` for text files such as code, and `base64` for binary files, such as images.
3253+
enum:
3254+
- string
3255+
- base64
3256+
type: string
3257+
name:
3258+
type: string
3259+
required:
3260+
- name
3261+
- encoding
3262+
- content
3263+
type: object
3264+
type: array
32453265
language:
32463266
default: python
32473267
description: Programming language for the code to execute. Currently only supports Python, but more will be added.

0 commit comments

Comments
 (0)