From 6491439f6374cb4c2e9cf00880ac1f3983609296 Mon Sep 17 00:00:00 2001 From: Fernando Prado Date: Tue, 9 Apr 2024 16:32:13 +0200 Subject: [PATCH 1/2] fix bugs and typos --- artifacts/CAMARA_common.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/artifacts/CAMARA_common.yaml b/artifacts/CAMARA_common.yaml index 2096bcd7..d6025d46 100644 --- a/artifacts/CAMARA_common.yaml +++ b/artifacts/CAMARA_common.yaml @@ -123,10 +123,10 @@ components: $ref: "#/components/schemas/ErrorInfo" example: status: 400 - code: INVALID_INPUT - message: Schema validation failed at ... + code: INVALID_ARGUMENT + message: Client specified an invalid argument, request body or query param Conflict: - description: conflict + description: Conflict content: application/json: schema: @@ -134,7 +134,7 @@ components: example: status: 409 code: CONFLICT - message: Schema validation failed at ... + message: Request could not be processed due to a conflict FailedPrecondition: description: Failed precondition content: @@ -142,9 +142,9 @@ components: schema: $ref: "#/components/schemas/ErrorInfo" example: - status: 400 + status: 412 code: FAILED_PRECONDITION - message: Schema validation failed at ... + message: Request cannot be executed in the current system state. OutOfRange: description: Out of Range content: @@ -152,9 +152,9 @@ components: schema: $ref: "#/components/schemas/ErrorInfo" example: - status: 400 + status: 404 code: OUT_OF_RANGE - message: Schema validation failed at ... + message: Client specified an invalid range Unauthenticated: description: Not Authenticated content: @@ -194,7 +194,7 @@ components: example: status: 409 code: ABORTED - message: Concurrency conflict. + message: Request aborted. AlreadyExists: description: Already Exists content: @@ -206,7 +206,7 @@ components: code: ALREADY_EXISTS message: The resource that a client tried to create already exists. TooManyRequests: - description: Already Exists + description: Too Many Requests content: application/json: schema: From 47c063f93d2c3646cdad17218061a7a4febaa4ae Mon Sep 17 00:00:00 2001 From: Fernando Prado Date: Thu, 11 Apr 2024 09:43:30 +0200 Subject: [PATCH 2/2] leave out of range as 400 --- artifacts/CAMARA_common.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artifacts/CAMARA_common.yaml b/artifacts/CAMARA_common.yaml index d6025d46..a0fe5a35 100644 --- a/artifacts/CAMARA_common.yaml +++ b/artifacts/CAMARA_common.yaml @@ -152,7 +152,7 @@ components: schema: $ref: "#/components/schemas/ErrorInfo" example: - status: 404 + status: 400 code: OUT_OF_RANGE message: Client specified an invalid range Unauthenticated: