Skip to content

Commit 8a42807

Browse files
authored
Merge pull request #3330 from lukaslihotzki/add-titles
OpenAPI: add titles
2 parents 6b4d885 + ca86eea commit 8a42807

File tree

10 files changed

+17
-2
lines changed

10 files changed

+17
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add titles for OpenAPI objects.

data/api/client-server/definitions/errors/error.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
type: object
15+
title: Error
1516
description: A Matrix-level Error
1617
properties:
1718
errcode:
@@ -22,4 +23,4 @@ properties:
2223
type: string
2324
description: A human-readable error message.
2425
example: An unknown error occurred
25-
required: ["errcode"]
26+
required: ["errcode"]

data/api/client-server/definitions/errors/rate_limited.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414
$ref: error.yaml
1515
type: object
16+
title: RateLimitError
1617
description: The rate limit was reached for this request
1718
properties:
1819
errcode:
@@ -29,4 +30,4 @@ properties:
2930
The amount of time in milliseconds the client should wait
3031
before trying the request again.
3132
example: 2000
32-
required: ["errcode"]
33+
required: ["errcode"]

data/api/client-server/definitions/event_batch.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ properties:
2121
type: object
2222
type: array
2323
type: object
24+
title: EventBatch

data/api/client-server/definitions/openid_token.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
type: object
16+
title: OpenIdCredentials
1617
properties:
1718
access_token:
1819
type: string

data/api/client-server/definitions/request_token_response.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
type: object
15+
title: RequestTokenResponse
1516
properties:
1617
sid:
1718
type: string

data/api/client-server/definitions/room_event_batch.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ properties:
2525
- origin_server_ts
2626
type: array
2727
type: object
28+
title: RoomEventBatch

data/api/client-server/definitions/state_event_batch.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ properties:
2626
- state_key
2727
type: array
2828
type: object
29+
title: StateEventBatch

data/api/client-server/definitions/timeline_batch.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ properties:
2424
rooms/{roomId}/messages endpoint.
2525
type: string
2626
type: object
27+
title: TimelineBatch

data/api/client-server/key_backup.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ paths:
409409
description: The update succeeded.
410410
schema:
411411
type: object
412+
title: RoomKeysUpdateResponse
412413
properties:
413414
etag:
414415
description: |-
@@ -521,6 +522,7 @@ paths:
521522
description: The update succeeded
522523
schema:
523524
type: object
525+
title: RoomKeysUpdateResponse
524526
properties:
525527
etag:
526528
description: |-
@@ -584,6 +586,7 @@ paths:
584586
description: The update succeeded
585587
schema:
586588
type: object
589+
title: RoomKeysUpdateResponse
587590
properties:
588591
etag:
589592
description: |-
@@ -698,6 +701,7 @@ paths:
698701
description: The update succeeded
699702
schema:
700703
type: object
704+
title: RoomKeysUpdateResponse
701705
properties:
702706
etag:
703707
description: |-
@@ -781,6 +785,7 @@ paths:
781785
description: The update succeeded
782786
schema:
783787
type: object
788+
title: RoomKeysUpdateResponse
784789
properties:
785790
etag:
786791
description: |-
@@ -905,6 +910,7 @@ paths:
905910
description: The update succeeded
906911
schema:
907912
type: object
913+
title: RoomKeysUpdateResponse
908914
properties:
909915
etag:
910916
description: |-

0 commit comments

Comments
 (0)