From 71ad922dd5cda06ca6b17110d974e1558d10157f Mon Sep 17 00:00:00 2001 From: bytedream Date: Sat, 22 Jan 2022 01:10:41 +0100 Subject: [PATCH] Changed responses from array in object to array --- api.yaml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/api.yaml b/api.yaml index e2fdf26..d74b075 100644 --- a/api.yaml +++ b/api.yaml @@ -98,12 +98,9 @@ paths: content: application/json: schema: - type: object - properties: - articles: - type: array - items: - $ref: '#/components/schemas/ArticleSummary' + type: array + items: + $ref: '#/components/schemas/ArticleSummary' /api/search: get: @@ -145,12 +142,9 @@ paths: content: application/json: schema: - type: object - properties: - articles: - type: array - items: - $ref: '#/components/schemas/ArticleSummary' + type: array + items: + $ref: '#/components/schemas/ArticleSummary' /api/upload: post: