Skip to content

Commit

Permalink
fix: use reference instead of array
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Sukhin <[email protected]>
  • Loading branch information
vsukhin committed Oct 7, 2024
1 parent b68824d commit b5052ef
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 26 deletions.
15 changes: 3 additions & 12 deletions api/v1/testkube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8086,10 +8086,7 @@ components:
tags:
$ref: "#/components/schemas/TestWorkflowTagValue"
runningContext:
type: array
description: running context for the test workflow execution
items:
$ref: "#/components/schemas/TestWorkflowRunningContext"
$ref: "#/components/schemas/TestWorkflowRunningContext"
parentExecutionIds:
type: array
description: parent execution ids
Expand Down Expand Up @@ -8189,10 +8186,7 @@ components:
tags:
$ref: "#/components/schemas/TestWorkflowTagValue"
runningContext:
type: array
description: running context for the test workflow execution
items:
$ref: "#/components/schemas/TestWorkflowRunningContext"
$ref: "#/components/schemas/TestWorkflowRunningContext"
required:
- id
- name
Expand Down Expand Up @@ -8228,10 +8222,7 @@ components:
tags:
$ref: "#/components/schemas/TestWorkflowTagValue"
runningContext:
type: array
description: running context for the test workflow execution
items:
$ref: "#/components/schemas/TestWorkflowRunningContext"
$ref: "#/components/schemas/TestWorkflowRunningContext"
required:
- id
- name
Expand Down
7 changes: 3 additions & 4 deletions pkg/api/v1/testkube/model_test_workflow_execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ type TestWorkflowExecution struct {
// test workflow execution name started the test workflow execution
TestWorkflowExecutionName string `json:"testWorkflowExecutionName,omitempty"`
// whether webhooks on the execution of this test workflow are disabled
DisableWebhooks bool `json:"disableWebhooks,omitempty"`
Tags map[string]string `json:"tags,omitempty"`
// running context for the test workflow execution
RunningContext []TestWorkflowRunningContext `json:"runningContext,omitempty"`
DisableWebhooks bool `json:"disableWebhooks,omitempty"`
Tags map[string]string `json:"tags,omitempty"`
RunningContext *TestWorkflowRunningContext `json:"runningContext,omitempty"`
}
7 changes: 3 additions & 4 deletions pkg/api/v1/testkube/model_test_workflow_execution_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ type TestWorkflowExecutionRequest struct {
// test workflow execution name started the test workflow execution
TestWorkflowExecutionName string `json:"testWorkflowExecutionName,omitempty"`
// whether webhooks on the execution of this test workflow are disabled
DisableWebhooks bool `json:"disableWebhooks,omitempty"`
Tags map[string]string `json:"tags,omitempty"`
// running context for the test workflow execution
RunningContext []TestWorkflowRunningContext `json:"runningContext,omitempty"`
DisableWebhooks bool `json:"disableWebhooks,omitempty"`
Tags map[string]string `json:"tags,omitempty"`
RunningContext *TestWorkflowRunningContext `json:"runningContext,omitempty"`
// parent execution ids
ParentExecutionIds []string `json:"parentExecutionIds,omitempty"`
}
11 changes: 5 additions & 6 deletions pkg/api/v1/testkube/model_test_workflow_execution_summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ type TestWorkflowExecutionSummary struct {
// when the execution has been scheduled to run
ScheduledAt time.Time `json:"scheduledAt,omitempty"`
// when the execution result's status has changed last time (queued, passed, failed)
StatusAt time.Time `json:"statusAt,omitempty"`
Result *TestWorkflowResultSummary `json:"result,omitempty"`
Workflow *TestWorkflowSummary `json:"workflow"`
Tags map[string]string `json:"tags,omitempty"`
// running context for the test workflow execution
RunningContext []TestWorkflowRunningContext `json:"runningContext,omitempty"`
StatusAt time.Time `json:"statusAt,omitempty"`
Result *TestWorkflowResultSummary `json:"result,omitempty"`
Workflow *TestWorkflowSummary `json:"workflow"`
Tags map[string]string `json:"tags,omitempty"`
RunningContext *TestWorkflowRunningContext `json:"runningContext,omitempty"`
}

0 comments on commit b5052ef

Please sign in to comment.