From ff7fb06154a009cc50f3f5bd116a479c90cf6f8f Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sun, 1 Mar 2026 19:47:32 -0600 Subject: [PATCH] fix: hide upload_file from OpenAPI schema --- CHANGELOG.md | 10 ++++++++-- open_terminal/main.py | 1 + pyproject.toml | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cc2ab13..068f404 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,12 +4,18 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). +## [0.4.1] - 2026-03-01 + +### Fixed + +- 🙈 **Hidden upload_file from OpenAPI schema** — the /files/upload endpoint is now excluded from the public API docs, consistent with other internal-only file endpoints. + ## [0.4.0] - 2026-03-01 ### Removed -- 📥 **Temporary download links** (`GET /files/download/link` and `GET /files/download/{token}`) — deprecated in favour of direct file navigation built into Open WebUI. -- 🔗 **Temporary upload links** (`POST /files/upload/link`, `GET /files/upload/{token}`, and `POST /files/upload/{token}`) — deprecated in favour of direct file navigation built into Open WebUI. +- 📥 **Temporary download links** (GET /files/download/link and GET /files/download/{token}) — deprecated in favour of direct file navigation built into Open WebUI. +- 🔗 **Temporary upload links** (POST /files/upload/link, GET /files/upload/{token}, and POST /files/upload/{token}) — deprecated in favour of direct file navigation built into Open WebUI. ## [0.3.0] - 2026-02-25 diff --git a/open_terminal/main.py b/open_terminal/main.py index 4395a7d..4536bbb 100644 --- a/open_terminal/main.py +++ b/open_terminal/main.py @@ -813,6 +813,7 @@ async def glob_search( @app.post( "/files/upload", + include_in_schema=False, operation_id="upload_file", summary="Upload a file", description="Save a file to the specified path. Provide a `url` to fetch remotely, or send the file directly via multipart form data.", diff --git a/pyproject.toml b/pyproject.toml index 3028c5e..a457d3a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "open-terminal" -version = "0.4.0" +version = "0.4.1" description = "A remote terminal API." readme = "README.md" authors = [