Fix invalid doc error
Another annoying case of Swagger fighting us
This commit is contained in:
parent
f7aa2adfb4
commit
85f34f942f
1 changed files with 17 additions and 13 deletions
|
@ -62,19 +62,23 @@ paths:
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type:
|
type:
|
||||||
- string
|
- string
|
||||||
- type: object
|
- object
|
||||||
title: KeyObject
|
# XXX: We can't define an actual object here, so we have to hope
|
||||||
properties:
|
# that people will look at the swagger source or can figure it out
|
||||||
key:
|
# from the other endpoints/example.
|
||||||
type: string
|
# - type: object
|
||||||
description: The key, encoded using unpadded base64.
|
# title: KeyObject
|
||||||
signatures:
|
# properties:
|
||||||
type: object
|
# key:
|
||||||
description: |-
|
# type: string
|
||||||
Signature for the device. Mapped from user ID to signature object.
|
# description: The key, encoded using unpadded base64.
|
||||||
additionalProperties:
|
# signatures:
|
||||||
type: string
|
# type: object
|
||||||
required: ['key', 'signatures']
|
# description: |-
|
||||||
|
# Signature for the device. Mapped from user ID to signature object.
|
||||||
|
# additionalProperties:
|
||||||
|
# type: string
|
||||||
|
# required: ['key', 'signatures']
|
||||||
example: {
|
example: {
|
||||||
"curve25519:AAAAAQ": "/qyvZvwjiTxGdGU0RCguDCLeR+nmsb3FfNG3/Ve4vU8",
|
"curve25519:AAAAAQ": "/qyvZvwjiTxGdGU0RCguDCLeR+nmsb3FfNG3/Ve4vU8",
|
||||||
"signed_curve25519:AAAAHg": {
|
"signed_curve25519:AAAAHg": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue