Return an object as the root element

Because otherwise it's impossible to change later
dbkr/get_pushers
David Baker 9 years ago
parent 42834340e7
commit 4fafe1ab73

@ -30,7 +30,8 @@ paths:
description: The pushers for this user description: The pushers for this user
examples: examples:
application/json: |- application/json: |-
[ {
"pushers": [
{ {
"pushkey": "Xp/MzCt8/9DcSNE9cuiaoT5Ac55job3TdLSSmtmYl4A=", "pushkey": "Xp/MzCt8/9DcSNE9cuiaoT5Ac55job3TdLSSmtmYl4A=",
"kind": "http", "kind": "http",
@ -44,9 +45,15 @@ paths:
} }
} }
] ]
}
schema: schema:
type: object
properties:
pushers:
type: array type: array
title: Pushers title: Pushers
description: |-
An array containing the current pushers for the user
items: items:
type: object type: object
title: Pusher title: Pusher

Loading…
Cancel
Save