summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-12-17 20:55:29 +0100
committerRory& <root@rory.gay>2025-12-17 20:55:29 +0100
commitb1f64d683afb47b00345b9867c35bf7f5de75c4c (patch)
tree17bbd9ddc935fdc23c4fd719fc79ec357fd18a54
parentfriend nicknames (diff)
downloadserver-ts-b1f64d683afb47b00345b9867c35bf7f5de75c4c.tar.xz
Update schemas post-merge
-rw-r--r--assets/openapi.json64
-rw-r--r--assets/schemas.json10
2 files changed, 74 insertions, 0 deletions
diff --git a/assets/openapi.json b/assets/openapi.json

index 2afc2170..0b326c88 100644 --- a/assets/openapi.json +++ b/assets/openapi.json
@@ -6031,6 +6031,14 @@ "username" ] }, + "RelationshipPatchSchema": { + "type": "object", + "properties": { + "nickname": { + "type": "string" + } + } + }, "RelationshipPutSchema": { "type": "object", "properties": { @@ -14304,6 +14312,62 @@ "users" ] }, + "patch": { + "security": [ + { + "bearer": [] + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RelationshipPatchSchema" + } + } + } + }, + "responses": { + "204": { + "description": "No description available" + }, + "400": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIErrorResponse" + } + } + } + }, + "404": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIErrorResponse" + } + } + } + } + }, + "parameters": [ + { + "name": "user_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "user_id" + } + ], + "tags": [ + "users" + ] + }, "delete": { "security": [ { diff --git a/assets/schemas.json b/assets/schemas.json
index 7aebefe5..3d734edf 100644 --- a/assets/schemas.json +++ b/assets/schemas.json
@@ -6404,6 +6404,16 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, + "RelationshipPatchSchema": { + "type": "object", + "properties": { + "nickname": { + "type": "string" + } + }, + "additionalProperties": false, + "$schema": "http://json-schema.org/draft-07/schema#" + }, "RelationshipPutSchema": { "type": "object", "properties": {