Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(helm): Use oneOf for object #501

Merged
merged 1 commit into from
Nov 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 26 additions & 24 deletions src/schemas/helm/HelmResponse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,37 +29,39 @@ allOf:
description: |
Specify if the service will be automatically updated after receiving a new image tag or a new commit according to the source type.
source:
type: object
properties:
git:
type: object
nullable: true
nullable: false
oneOf:
- type: object
properties:
git_repository:
$ref: '../ApplicationGitRepositoryRequest.yaml'
repository:
type: object
nullable: true
git:
type: object
properties:
git_repository:
$ref: '../ApplicationGitRepositoryRequest.yaml'
- type: object
properties:
chart_name:
type: string
description: The name of the chart in the repository
chart_version:
type: string
description: The version of the chart to use
repository:
type: object
properties:
id:
type: string
format: UUID
description: The id of the helm repository
name:
chart_name:
type: string
description: The name of the helm repository
url:
description: The name of the chart in the repository
chart_version:
type: string
description: The url the helm repository
description: The version of the chart to use
repository:
type: object
properties:
id:
type: string
format: UUID
description: The id of the helm repository
name:
type: string
description: The name of the helm repository
url:
type: string
description: The url the helm repository
arguments:
type: array
description: The extra arguments to pass to helm
Expand Down
Loading