Fix the receipts API to be valid swagger
This commit is contained in:
parent
4f606cf3a7
commit
509d178d58
2 changed files with 12 additions and 1 deletions
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
|
required: true
|
||||||
x-example: "$1924376522eioj:example.com"
|
x-example: "$1924376522eioj:example.com"
|
||||||
- in: body
|
- in: body
|
||||||
|
name: receipt
|
||||||
description: |-
|
description: |-
|
||||||
Extra receipt information to attach to ``content`` if any. The
|
Extra receipt information to attach to ``content`` if any. The
|
||||||
server will automatically set the ``ts`` field.
|
server will automatically set the ``ts`` field.
|
||||||
|
@ -65,4 +66,4 @@ paths:
|
||||||
429:
|
429:
|
||||||
description: This request was rate-limited.
|
description: This request was rate-limited.
|
||||||
schema:
|
schema:
|
||||||
"$ref": "definitions/error.yaml"
|
"$ref": "definitions/error.yaml"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue