mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-20 16:38:37 +01:00
Fix the receipts API to be valid swagger
This commit is contained in:
parent
4f606cf3a7
commit
509d178d58
10
api/client-server/v2_alpha/definitions/error.yaml
Normal file
10
api/client-server/v2_alpha/definitions/error.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
type: object
|
||||
description: A Matrix-level Error
|
||||
properties:
|
||||
errcode:
|
||||
type: string
|
||||
description: An error code.
|
||||
error:
|
||||
type: string
|
||||
description: A human-readable error message.
|
||||
required: ["errcode"]
|
||||
|
|
@ -47,6 +47,7 @@ paths:
|
|||
required: true
|
||||
x-example: "$1924376522eioj:example.com"
|
||||
- in: body
|
||||
name: receipt
|
||||
description: |-
|
||||
Extra receipt information to attach to ``content`` if any. The
|
||||
server will automatically set the ``ts`` field.
|
||||
|
|
@ -65,4 +66,4 @@ paths:
|
|||
429:
|
||||
description: This request was rate-limited.
|
||||
schema:
|
||||
"$ref": "definitions/error.yaml"
|
||||
"$ref": "definitions/error.yaml"
|
||||
|
|
|
|||
Loading…
Reference in a new issue