diff --git a/src/schemas/HelmGitRepositoryRequest.yaml b/src/schemas/HelmGitRepositoryRequest.yaml new file mode 100644 index 00000000..c4e25b59 --- /dev/null +++ b/src/schemas/HelmGitRepositoryRequest.yaml @@ -0,0 +1,27 @@ +type: object +nullable: true +required: + - provider + - owner + - name + - url +properties: + url: + type: string + description: application git repository URL + example: https://github.com/Qovery/simple-node-app + branch: + type: string + description: | + Name of the branch to use. This is optional + If not specified, then the branch used is the `main` or `master` one + example: feat/text_xxx + root_path: + type: string + default: / + description: indicates the root path of the application. + git_token_id: + type: string + format: uuid + description: The git token id on Qovery side + nullable: true diff --git a/src/schemas/_index.yaml b/src/schemas/_index.yaml index be32e91e..d909c501 100644 --- a/src/schemas/_index.yaml +++ b/src/schemas/_index.yaml @@ -758,3 +758,5 @@ CronJobResponse: $ref: ./job/CronJobResponse.yaml BaseJobResponse: $ref: ./job/BaseJobResponse.yaml +HelmGitRepositoryRequest: + $ref: ./HelmGitRepositoryRequest.yaml diff --git a/src/schemas/helm/HelmRequest.yaml b/src/schemas/helm/HelmRequest.yaml index 35f8e43b..14c17646 100644 --- a/src/schemas/helm/HelmRequest.yaml +++ b/src/schemas/helm/HelmRequest.yaml @@ -33,13 +33,9 @@ allOf: source: type: object properties: - git: - type: object - nullable: true - properties: - git_repository: - $ref: '../ApplicationGitRepositoryRequest.yaml' - repository: + git_repository: + $ref: '../HelmGitRepositoryRequest.yaml' + helm_repository: type: object nullable: true properties: