From f0030328602019e49ad7e1e3f809a528cc20d7eb Mon Sep 17 00:00:00 2001 From: Simon Pinfold Date: Thu, 21 May 2026 09:54:05 +1200 Subject: [PATCH] Mark asset name as deprecated Amp-Thread-ID: https://ampcode.com/threads/T-019e4307-dd77-7709-b9f4-46bb79dcf58a Co-authored-by: Amp --- app/assets/api/schemas_out.py | 2 +- openapi.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/api/schemas_out.py b/app/assets/api/schemas_out.py index 560589a5d..b1bcc3d28 100644 --- a/app/assets/api/schemas_out.py +++ b/app/assets/api/schemas_out.py @@ -9,7 +9,7 @@ class Asset(BaseModel): ``id`` here is the AssetReference id, not the content-addressed Asset id.""" id: str - name: str + name: str = Field(..., deprecated=True) file_path: str | None = None display_name: str | None = None asset_hash: str | None = None diff --git a/openapi.yaml b/openapi.yaml index 4c1fc9bbc..40ae34bf5 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -6328,6 +6328,7 @@ components: description: Unique identifier for the asset name: type: string + deprecated: true description: Name of the asset file file_path: type: string