From d43bca69b860ba684a106c002d2dd5901ea03220 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Sat, 24 Oct 2020 19:39:05 +0200 Subject: [PATCH] Public API: `NoteRevisionsMetadata` is not an array Signed-off-by: David Mehren Co-authored-by: Yannick Bungers --- docs/dev/public_api.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/dev/public_api.yml b/docs/dev/public_api.yml index bac4472ff..012422b32 100644 --- a/docs/dev/public_api.yml +++ b/docs/dev/public_api.yml @@ -389,7 +389,9 @@ paths: content: application/json: schema: - "$ref": "#/components/schemas/NoteRevisionsMetadata" + type: array + items: + "$ref": "#/components/schemas/NoteRevisionsMetadata" '401': "$ref": "#/components/responses/UnauthorizedError" '403': @@ -768,19 +770,17 @@ components: canEdit: type: boolean NoteRevisionsMetadata: - type: array - items: - type: object - properties: - id: - type: integer - description: The id of the revision - createdTime: - type: string - description: ISO-timestamp of when the revision was saved. Is also the revision-id. - length: - type: integer - description: Length of the document to the timepoint the revision was saved. + type: object + properties: + id: + type: integer + description: The id of the revision + createdTime: + type: string + description: ISO-timestamp of when the revision was saved. Is also the revision-id. + length: + type: integer + description: Length of the document to the timepoint the revision was saved. NoteRevision: type: object properties: