Skip to content

Commit 4e83d9f

Browse files
chore: drop min success default
1 parent fa2c5e7 commit 4e83d9f

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

apps/api/openapi/openapi.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,6 @@
10371037
"type": "integer"
10381038
},
10391039
"minimumSuccessPercentage": {
1040-
"default": 100,
10411040
"format": "float",
10421041
"maximum": 100,
10431042
"minimum": 0,

apps/api/openapi/schemas/policies.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ local openapi = import '../lib/openapi.libsonnet';
184184
description: 'CEL expression to match the environment(s) that must have a successful release before this environment can proceed.',
185185
},
186186

187-
minimumSuccessPercentage: { type: 'number', format: 'float', minimum: 0, maximum: 100, default: 100 },
187+
minimumSuccessPercentage: { type: 'number', format: 'float', minimum: 0, maximum: 100 },
188188
successStatuses: { type: 'array', items: openapi.schemaRef('JobStatus') },
189189

190190
minimumSoakTimeMinutes: {

apps/api/src/types/openapi.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,11 +1493,8 @@ export interface components {
14931493
* @description Minimum time to wait after the depends on environment is in a success state before the current environment can be deployed. Defaults to 0 if not provided.
14941494
*/
14951495
minimumSoakTimeMinutes?: number;
1496-
/**
1497-
* Format: float
1498-
* @default 100
1499-
*/
1500-
minimumSuccessPercentage: number;
1496+
/** Format: float */
1497+
minimumSuccessPercentage?: number;
15011498
/**
15021499
* @description If true, jobs must also have passed verification to count toward the success percentage
15031500
* @default false

0 commit comments

Comments
 (0)