Skip to content
Closed
Show file tree
Hide file tree
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
19 changes: 0 additions & 19 deletions apps/api/openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
9 changes: 0 additions & 9 deletions apps/api/openapi/schemas/deployments.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
10 changes: 0 additions & 10 deletions apps/api/openapi/schemas/job-agents.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
18 changes: 9 additions & 9 deletions apps/api/src/types/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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";
Expand Down Expand Up @@ -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";
Expand All @@ -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";
Expand All @@ -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";
Expand Down Expand Up @@ -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";
Expand Down Expand Up @@ -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";
Expand Down Expand Up @@ -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";
Expand Down
Loading