Skip to content

TCI - add file upload to spec #82

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3242,6 +3242,26 @@ components:
description: 'Code snippet to execute. '
example: "print('Hello, world!')"
type: string
files:
description: Files to upload to the session. If present, files will be uploaded before executing the given code.
items:
properties:
content:
type: string
encoding:
description: Encoding of the file content. Use `string` for text files such as code, and `base64` for binary files, such as images.
enum:
- string
- base64
type: string
name:
type: string
required:
- name
- encoding
- content
type: object
type: array
language:
default: python
description: Programming language for the code to execute. Currently only supports Python, but more will be added.
Expand Down