From 767c0bd2358e72115d50fc8ec6f6ef2da8793de7 Mon Sep 17 00:00:00 2001 From: "angelo.andreussi" Date: Thu, 14 Mar 2024 16:14:26 +0100 Subject: [PATCH 1/2] inserted missing references to jobExecution schema --- .../openapi/jobExecution/jobExecution.yaml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/rest-api/resources/src/main/resources/openapi/jobExecution/jobExecution.yaml b/rest-api/resources/src/main/resources/openapi/jobExecution/jobExecution.yaml index 5378504f183..5b31c8b4edf 100644 --- a/rest-api/resources/src/main/resources/openapi/jobExecution/jobExecution.yaml +++ b/rest-api/resources/src/main/resources/openapi/jobExecution/jobExecution.yaml @@ -27,6 +27,27 @@ components: allOf: - $ref: '../openapi.yaml#/components/schemas/kapuaUpdatableEntity' - type: object + properties: + startedOn: + description: The moment when the job execution started + type: string + format: 'date-time' + endedOn: + description: The moment when the job execution ended + type: string + format: 'date-time' + log: + description: logs for the job execution + type: string + jobId: + description: job id for this job execution + $ref: '../openapi.yaml#/components/schemas/kapuaId' + targetIds: + type: array + items: + allOf: + - $ref: '../openapi.yaml#/components/schemas/jobTarget' + - description: The IDs of job target example: type: jobExecution id: GTh9xBWezHY From 2e11d15409e071619d73c467be2aeff3432fa4c2 Mon Sep 17 00:00:00 2001 From: "angelo.andreussi" Date: Fri, 15 Mar 2024 13:49:00 +0100 Subject: [PATCH 2/2] fix: small fix on openApidoc for JobExecutions --- .../src/main/resources/openapi/jobExecution/jobExecution.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rest-api/resources/src/main/resources/openapi/jobExecution/jobExecution.yaml b/rest-api/resources/src/main/resources/openapi/jobExecution/jobExecution.yaml index 5b31c8b4edf..0a2c524d4ee 100644 --- a/rest-api/resources/src/main/resources/openapi/jobExecution/jobExecution.yaml +++ b/rest-api/resources/src/main/resources/openapi/jobExecution/jobExecution.yaml @@ -44,10 +44,10 @@ components: $ref: '../openapi.yaml#/components/schemas/kapuaId' targetIds: type: array + description: the IDs of the job target items: allOf: - - $ref: '../openapi.yaml#/components/schemas/jobTarget' - - description: The IDs of job target + - $ref: '../openapi.yaml#/components/schemas/kapuaId' example: type: jobExecution id: GTh9xBWezHY