From 6f9cf8817c99ba3701ae075c80fd5ca740f57d19 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Wed, 15 Feb 2023 19:13:57 +0100 Subject: user_status: Add OpenAPI spec Signed-off-by: jld3103 --- apps/user_status/openapi.json | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) (limited to 'apps/user_status/openapi.json') diff --git a/apps/user_status/openapi.json b/apps/user_status/openapi.json index 08eddd47bb3..8629256942d 100644 --- a/apps/user_status/openapi.json +++ b/apps/user_status/openapi.json @@ -740,10 +740,7 @@ "meta": { "$ref": "#/components/schemas/OCSMeta" }, - "data": { - "type": "object", - "additionalProperties": true - } + "data": {} } } } @@ -811,8 +808,12 @@ "$ref": "#/components/schemas/OCSMeta" }, "data": { - "$ref": "#/components/schemas/Private", - "nullable": true + "oneOf": [ + { + "$ref": "#/components/schemas/Private" + }, + {} + ] } } } @@ -890,7 +891,7 @@ "/ocs/v2.php/apps/user_status/api/v1/heartbeat": { "put": { "operationId": "heartbeat-heartbeat", - "summary": "Keep the current status alive", + "summary": "Keep the status alive", "tags": [ "heartbeat" ], @@ -973,10 +974,7 @@ "meta": { "$ref": "#/components/schemas/OCSMeta" }, - "data": { - "type": "object", - "additionalProperties": true - } + "data": {} } } } @@ -1004,10 +1002,7 @@ "meta": { "$ref": "#/components/schemas/OCSMeta" }, - "data": { - "type": "object", - "additionalProperties": true - } + "data": {} } } } @@ -1035,10 +1030,7 @@ "meta": { "$ref": "#/components/schemas/OCSMeta" }, - "data": { - "type": "object", - "additionalProperties": true - } + "data": {} } } } -- cgit v1.2.3