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