From ffa07afd8046ffbc5b8215340b9043693e30763f Mon Sep 17 00:00:00 2001 From: Min RK Date: Wed, 7 Feb 2024 13:12:03 +0100 Subject: [PATCH] fix nullable items found by linter --- docs/source/_static/rest-api.yml | 39 ++++++++++++++++---------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/docs/source/_static/rest-api.yml b/docs/source/_static/rest-api.yml index 2ae8af39..9bbc6b1d 100644 --- a/docs/source/_static/rest-api.yml +++ b/docs/source/_static/rest-api.yml @@ -334,6 +334,8 @@ paths: last_activity: 2019-02-06T12:54:14Z required: false responses: + 200: + description: Successfully updated activity 401: description: Authentication/Authorization error content: {} @@ -1614,8 +1616,9 @@ components: description: | fields for the next page, if any. Null if this is the last page. - type: object - nullable: true + type: + - object + - "null" properties: offset: type: number @@ -1763,8 +1766,9 @@ components: - type: object properties: session_id: - type: string - nullable: true + type: + - string + - "null" description: | The session id associated with the request's OAuth token, if any. null, if the request token not associated with a session id. @@ -1881,8 +1885,9 @@ components: description: the group being shared with (exactly one of 'user' or 'group' will be non-null, the other will be null) - type: object - nullable: true + type: + - object + - "null" properties: name: type: string @@ -1890,8 +1895,9 @@ components: description: the user being shared with (exactly one of 'user' or 'group' will be non-null, the other will be null) - type: object - nullable: true + type: + - object + - "null" properties: name: type: string @@ -1927,8 +1933,9 @@ components: When the share code will expire, always in the future. `null` if the code does not expire. - type: string - nullable: true + type: + - string + - "null" format: date-time Token: @@ -1984,20 +1991,14 @@ components: Can be null if token has never been used. format: date-time session_id: - type: string - nullable: true + type: + - string + - "null" description: | The session id associated with the token, if any. Only used for tokens set during oauth flows. Added in 2.0. - responses: - NotFound: - description: The specified resource was not found - content: {} - Unauthorized: - description: Authentication/Authorization error - content: {} securitySchemes: token: type: apiKey