Fix the receipts API to be valid swagger

This commit is contained in:
Mark Haines 2015-10-06 17:40:28 +01:00
parent 4f606cf3a7
commit 509d178d58
2 changed files with 12 additions and 1 deletions

View 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"]

View file

@ -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.