From 6aea7fa03ae334707b24023abcae710a48109432 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathana=C3=ABl=20Jourdane?= Date: Mon, 25 May 2020 17:49:00 +0200 Subject: [PATCH] Update identifier types --- openapi/components/schemas/candidate.yaml | 3 ++- openapi/components/schemas/grade.yaml | 3 ++- openapi/components/schemas/judgment.yaml | 6 ++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/openapi/components/schemas/candidate.yaml b/openapi/components/schemas/candidate.yaml index 7fbba1f..90842af 100644 --- a/openapi/components/schemas/candidate.yaml +++ b/openapi/components/schemas/candidate.yaml @@ -1,9 +1,10 @@ type: object properties: id: - type: string + type: integer description: A unique identifier. readOnly: true + example: 4 name: type: string description: Unique but short name of the candidate. diff --git a/openapi/components/schemas/grade.yaml b/openapi/components/schemas/grade.yaml index f1b0194..da55977 100644 --- a/openapi/components/schemas/grade.yaml +++ b/openapi/components/schemas/grade.yaml @@ -1,8 +1,9 @@ type: object properties: id: - type: string + type: integer description: A unique identifier + example: 0 readOnly: true name: type: string diff --git a/openapi/components/schemas/judgment.yaml b/openapi/components/schemas/judgment.yaml index 3e8716a..2c73a19 100644 --- a/openapi/components/schemas/judgment.yaml +++ b/openapi/components/schemas/judgment.yaml @@ -1,9 +1,11 @@ type: object properties: id: - type: string + type: integer description: A unique identifier + example: 4 readOnly: true grade: - type: string + type: integer description: The grade item, according to the grades array defined when creating the poll. + example: 2