Fix invalid doc error

Another annoying case of Swagger fighting us
This commit is contained in:
Travis Ralston 2019-06-11 09:18:29 -06:00
parent f7aa2adfb4
commit 85f34f942f

View file

@ -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": {