From 7fdd42a9b4f070513dea32519c0750c7cd1d18d2 Mon Sep 17 00:00:00 2001 From: Matthias Mohr Date: Fri, 1 Dec 2023 10:51:20 +0100 Subject: [PATCH] Add title and description to workspaces, removed updating the quota --- extensions/workspaces/openapi.yaml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/extensions/workspaces/openapi.yaml b/extensions/workspaces/openapi.yaml index 5d22fd34..fae12888 100644 --- a/extensions/workspaces/openapi.yaml +++ b/extensions/workspaces/openapi.yaml @@ -100,6 +100,8 @@ paths: required: - intent properties: + title: + type: string intent: type: string quota: @@ -205,8 +207,10 @@ paths: schema: type: object properties: - quota: - $ref: '../../openapi.yaml#/components/schemas/max_storage_quota' + title: + $ref: '#/components/schemas/workspace_title' + description: + $ref: '#/components/schemas/workspace_description' required: true responses: '204': @@ -337,6 +341,17 @@ components: type: string pattern: '^[\w\-\.~]+$' example: my-collection + workspace_title: + type: string + description: A short title for the workspace. + workspace_description: + type: string + format: commonmark + description: |- + A description that describes the workspace. + + [CommonMark 0.29](http://commonmark.org/) syntax MAY be used for rich + text representation. workspace: title: Workspace required: @@ -346,6 +361,10 @@ components: properties: id: $ref: '#/components/schemas/workspace_id' + title: + $ref: '#/components/schemas/workspace_title' + description: + $ref: '#/components/schemas/workspace_description' status: type: string description: The status of the workspace.