diff --git a/apps/api/openapi/openapi.json b/apps/api/openapi/openapi.json index 3d41c0829..e5201f540 100644 --- a/apps/api/openapi/openapi.json +++ b/apps/api/openapi/openapi.json @@ -501,15 +501,6 @@ "type": "object" }, "DeploymentJobAgentConfig": { - "discriminator": { - "mapping": { - "argo-cd": "#/components/schemas/DeploymentArgoCDJobAgentConfig", - "custom": "#/components/schemas/DeploymentCustomJobAgentConfig", - "github-app": "#/components/schemas/DeploymentGithubJobAgentConfig", - "tfe": "#/components/schemas/DeploymentTerraformCloudJobAgentConfig" - }, - "propertyName": "type" - }, "oneOf": [ { "$ref": "#/components/schemas/DeploymentGithubJobAgentConfig" @@ -1079,16 +1070,6 @@ "type": "object" }, "JobAgentConfig": { - "discriminator": { - "mapping": { - "argo-cd": "#/components/schemas/ArgoCDJobAgentConfig", - "custom": "#/components/schemas/CustomJobAgentConfig", - "github-app": "#/components/schemas/GithubJobAgentConfig", - "test-runner": "#/components/schemas/TestRunnerJobAgentConfig", - "tfe": "#/components/schemas/TerraformCloudJobAgentConfig" - }, - "propertyName": "type" - }, "oneOf": [ { "$ref": "#/components/schemas/GithubJobAgentConfig" diff --git a/apps/api/openapi/schemas/deployments.jsonnet b/apps/api/openapi/schemas/deployments.jsonnet index be20c849d..d9b37fe65 100644 --- a/apps/api/openapi/schemas/deployments.jsonnet +++ b/apps/api/openapi/schemas/deployments.jsonnet @@ -49,15 +49,6 @@ local openapi = import '../lib/openapi.libsonnet'; openapi.schemaRef('DeploymentTerraformCloudJobAgentConfig'), openapi.schemaRef('DeploymentCustomJobAgentConfig'), ], - discriminator: { - propertyName: 'type', - mapping: { - 'github-app': '#/components/schemas/DeploymentGithubJobAgentConfig', - 'argo-cd': '#/components/schemas/DeploymentArgoCDJobAgentConfig', - tfe: '#/components/schemas/DeploymentTerraformCloudJobAgentConfig', - custom: '#/components/schemas/DeploymentCustomJobAgentConfig', - }, - }, }, DeploymentGithubJobAgentConfig: { diff --git a/apps/api/openapi/schemas/job-agents.jsonnet b/apps/api/openapi/schemas/job-agents.jsonnet index c69787dde..e0ee2f9ba 100644 --- a/apps/api/openapi/schemas/job-agents.jsonnet +++ b/apps/api/openapi/schemas/job-agents.jsonnet @@ -37,16 +37,6 @@ local openapi = import '../lib/openapi.libsonnet'; openapi.schemaRef('TestRunnerJobAgentConfig'), openapi.schemaRef('CustomJobAgentConfig'), ], - discriminator: { - propertyName: 'type', - mapping: { - 'github-app': '#/components/schemas/GithubJobAgentConfig', - 'argo-cd': '#/components/schemas/ArgoCDJobAgentConfig', - tfe: '#/components/schemas/TerraformCloudJobAgentConfig', - 'test-runner': '#/components/schemas/TestRunnerJobAgentConfig', - custom: '#/components/schemas/CustomJobAgentConfig', - }, - }, }, GithubJobAgentConfig: { diff --git a/apps/api/src/types/openapi.ts b/apps/api/src/types/openapi.ts index fea58cf72..3bc04cc22 100644 --- a/apps/api/src/types/openapi.ts +++ b/apps/api/src/types/openapi.ts @@ -765,7 +765,7 @@ export interface components { /** @description ArgoCD server address (host[:port] or URL). */ serverUrl: string; /** - * @description Job agent type discriminator. (enum property replaced by openapi-typescript) + * @description Job agent type discriminator. * @enum {string} */ type: "argo-cd"; @@ -846,7 +846,7 @@ export interface components { }; CustomJobAgentConfig: { /** - * @description Job agent type discriminator. (enum property replaced by openapi-typescript) + * @description Job agent type discriminator. * @enum {string} */ type: "custom"; @@ -915,14 +915,14 @@ export interface components { /** @description ArgoCD Application YAML/JSON template (supports Go templates). */ template: string; /** - * @description Deployment job agent type discriminator. (enum property replaced by openapi-typescript) + * @description Deployment job agent type discriminator. * @enum {string} */ type: "argo-cd"; }; DeploymentCustomJobAgentConfig: { /** - * @description Deployment job agent type discriminator. (enum property replaced by openapi-typescript) + * @description Deployment job agent type discriminator. * @enum {string} */ type: "custom"; @@ -938,7 +938,7 @@ export interface components { /** @description GitHub repository name. */ repo: string; /** - * @description Deployment job agent type discriminator. (enum property replaced by openapi-typescript) + * @description Deployment job agent type discriminator. * @enum {string} */ type: "github-app"; @@ -953,7 +953,7 @@ export interface components { /** @description Terraform Cloud workspace template (YAML/JSON; supports Go templates). */ template: string; /** - * @description Deployment job agent type discriminator. (enum property replaced by openapi-typescript) + * @description Deployment job agent type discriminator. * @enum {string} */ type: "tfe"; @@ -1100,7 +1100,7 @@ export interface components { installationId: number; owner: string; /** - * @description Job agent type discriminator. (enum property replaced by openapi-typescript) + * @description Job agent type discriminator. * @enum {string} */ type: "github-app"; @@ -1420,7 +1420,7 @@ export interface components { /** @description Terraform Cloud API token. */ token: string; /** - * @description Job agent type discriminator. (enum property replaced by openapi-typescript) + * @description Job agent type discriminator. * @enum {string} */ type: "tfe"; @@ -1463,7 +1463,7 @@ export interface components { */ status?: "completed" | "failure"; /** - * @description Job agent type discriminator. (enum property replaced by openapi-typescript) + * @description Job agent type discriminator. * @enum {string} */ type: "test-runner";