From d9a89195652186773e22ea256a73a03e5328ae87 Mon Sep 17 00:00:00 2001 From: Marco Realacci Date: Thu, 24 Nov 2022 15:20:47 +0100 Subject: [PATCH 1/5] Add date_time lenghts --- doc/api.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/api.yaml b/doc/api.yaml index 6139f59..001b4cb 100644 --- a/doc/api.yaml +++ b/doc/api.yaml @@ -943,8 +943,10 @@ components: example: 3 upload_time: type: string - format: date-time - description: Upload time and date. + format: RFC3339 + description: Upload time and date in RFC3339 format. + minLength: 25 + maxLength: 25 likes: type: integer example: 90 From b42886beabe1612114471f4cdd4a64ccad761861 Mon Sep 17 00:00:00 2001 From: Marco Realacci Date: Thu, 24 Nov 2022 15:23:56 +0100 Subject: [PATCH 2/5] Add generic response string pattern --- doc/api.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/api.yaml b/doc/api.yaml index 001b4cb..7cbc487 100644 --- a/doc/api.yaml +++ b/doc/api.yaml @@ -943,7 +943,7 @@ components: example: 3 upload_time: type: string - format: RFC3339 + format: date-time description: Upload time and date in RFC3339 format. minLength: 25 maxLength: 25 @@ -1075,6 +1075,7 @@ components: properties: status: type: string + pattern: ".*" description: The status of the request. example: "Success" From 22ac115b608160b8d990ffed4f291b5e8366051b Mon Sep 17 00:00:00 2001 From: Marco Realacci Date: Thu, 24 Nov 2022 15:25:25 +0100 Subject: [PATCH 3/5] Add missing maxItems --- doc/api.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/api.yaml b/doc/api.yaml index 7cbc487..9d88832 100644 --- a/doc/api.yaml +++ b/doc/api.yaml @@ -107,6 +107,7 @@ paths: type: array description: The list of followers. minItems: 0 + maxItems: 100 items: $ref: "#/components/schemas/uid_name" example: From 5fd7dbc6d4a9e50bb031eb033092e17c1c8bcad8 Mon Sep 17 00:00:00 2001 From: Marco Realacci Date: Thu, 24 Nov 2022 15:29:46 +0100 Subject: [PATCH 4/5] session now returns 201 --- doc/api.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api.yaml b/doc/api.yaml index 9d88832..4bb33ba 100644 --- a/doc/api.yaml +++ b/doc/api.yaml @@ -37,7 +37,7 @@ paths: requestBody: $ref: "#/components/requestBodies/userDetails" responses: - '200': #is 201 in the original one + '201': description: User log-in action successful. content: application/json: From f06f5f4e94de1257aab4bd6b5c2e95c0fa1d70f0 Mon Sep 17 00:00:00 2001 From: Marco Realacci Date: Fri, 25 Nov 2022 16:12:53 +0100 Subject: [PATCH 5/5] Ho beccato il typo --- doc/api.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api.yaml b/doc/api.yaml index 4bb33ba..044e39a 100644 --- a/doc/api.yaml +++ b/doc/api.yaml @@ -51,7 +51,7 @@ paths: tags: ["username"] summary: Updates the username description: Changes the username of the user with the given one. - operationId: setMyUsername + operationId: setMyUserName parameters: - name: user_id in: path