From 8f4b52f626cc3da41809bfb5c68aea55aae4ba07 Mon Sep 17 00:00:00 2001 From: bytedream Date: Sun, 12 Dec 2021 13:39:11 +0100 Subject: [PATCH] Wrapped articles into an array --- api.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/api.yaml b/api.yaml index e977ec8..d3cda8e 100644 --- a/api.yaml +++ b/api.yaml @@ -21,7 +21,12 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ArticleSummary' + type: object + properties: + articles: + type: array + items: + $ref: '#/components/schemas/ArticleSummary' /api/search: get: @@ -48,7 +53,12 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ArticleSummary' + type: object + properties: + articles: + type: array + items: + $ref: '#/components/schemas/ArticleSummary' components: schemas: ArticleSummary: @@ -63,6 +73,7 @@ components: image: type: string description: Link to a preview image + nullable: true link: type: string description: Link to the article itself