From 8f1f1f10d9ac438d2b4f577fd51215e7fa460330 Mon Sep 17 00:00:00 2001 From: Fabrice Lecomte Date: Fri, 19 Mar 2021 21:05:49 +0100 Subject: [PATCH] add required for paginated in openapi --- src/main/resources/openapi2.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/resources/openapi2.yaml b/src/main/resources/openapi2.yaml index 1bfdef0..dec904f 100644 --- a/src/main/resources/openapi2.yaml +++ b/src/main/resources/openapi2.yaml @@ -820,12 +820,23 @@ components: id: $ref: '#/components/schemas/UUID' Paginated: + required: + - total + - count + - currentPage + - limit + - offset + - result properties: result: type: array maxItems: 50 items: - $ref: '#/components/schemas/UuidEntity' + required: + - id + properties: + id: + $ref: '#/components/schemas/UUID' count: type: integer minimum: 0