fix nullable items found by linter

This commit is contained in:
Min RK
2024-02-07 13:12:03 +01:00
parent c520102008
commit ffa07afd80

View File

@@ -334,6 +334,8 @@ paths:
last_activity: 2019-02-06T12:54:14Z last_activity: 2019-02-06T12:54:14Z
required: false required: false
responses: responses:
200:
description: Successfully updated activity
401: 401:
description: Authentication/Authorization error description: Authentication/Authorization error
content: {} content: {}
@@ -1614,8 +1616,9 @@ components:
description: | description: |
fields for the next page, if any. fields for the next page, if any.
Null if this is the last page. Null if this is the last page.
type: object type:
nullable: true - object
- "null"
properties: properties:
offset: offset:
type: number type: number
@@ -1763,8 +1766,9 @@ components:
- type: object - type: object
properties: properties:
session_id: session_id:
type: string type:
nullable: true - string
- "null"
description: | description: |
The session id associated with the request's OAuth token, if any. The session id associated with the request's OAuth token, if any.
null, if the request token not associated with a session id. null, if the request token not associated with a session id.
@@ -1881,8 +1885,9 @@ components:
description: description:
the group being shared with (exactly one of 'user' or 'group' the group being shared with (exactly one of 'user' or 'group'
will be non-null, the other will be null) will be non-null, the other will be null)
type: object type:
nullable: true - object
- "null"
properties: properties:
name: name:
type: string type: string
@@ -1890,8 +1895,9 @@ components:
description: description:
the user being shared with (exactly one of 'user' or 'group' the user being shared with (exactly one of 'user' or 'group'
will be non-null, the other will be null) will be non-null, the other will be null)
type: object type:
nullable: true - object
- "null"
properties: properties:
name: name:
type: string type: string
@@ -1927,8 +1933,9 @@ components:
When the share code will expire, When the share code will expire,
always in the future. always in the future.
`null` if the code does not expire. `null` if the code does not expire.
type: string type:
nullable: true - string
- "null"
format: date-time format: date-time
Token: Token:
@@ -1984,20 +1991,14 @@ components:
Can be null if token has never been used. Can be null if token has never been used.
format: date-time format: date-time
session_id: session_id:
type: string type:
nullable: true - string
- "null"
description: | description: |
The session id associated with the token, if any. The session id associated with the token, if any.
Only used for tokens set during oauth flows. Only used for tokens set during oauth flows.
Added in 2.0. Added in 2.0.
responses:
NotFound:
description: The specified resource was not found
content: {}
Unauthorized:
description: Authentication/Authorization error
content: {}
securitySchemes: securitySchemes:
token: token:
type: apiKey type: apiKey