Skip to content

Commit

Permalink
Refactor optional isSilence fields to default to false (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlhaufe authored Oct 2, 2024
1 parent 258096e commit 726e4a5
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion server/api/assumptions/index.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const querySchema = z.object({
solutionId: z.string().uuid(),
name: z.string().optional(),
statement: z.string().optional(),
isSilence: z.boolean().optional()
isSilence: z.boolean().optional().default(false)
})

/**
Expand Down
2 changes: 1 addition & 1 deletion server/api/constraints/index.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const querySchema = z.object({
name: z.string().optional(),
statement: z.string().optional(),
category: z.nativeEnum(ConstraintCategory).optional(),
isSilence: z.boolean().optional()
isSilence: z.boolean().optional().default(false)
})

/**
Expand Down
2 changes: 1 addition & 1 deletion server/api/effects/index.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const querySchema = z.object({
solutionId: z.string().uuid(),
name: z.string().optional(),
statement: z.string().optional(),
isSilence: z.boolean().optional()
isSilence: z.boolean().optional().default(false)
})

/**
Expand Down
2 changes: 1 addition & 1 deletion server/api/environment-components/index.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const querySchema = z.object({
name: z.string().optional(),
statement: z.string().optional(),
parentComponentId: z.string().uuid().optional(),
isSilence: z.boolean().optional()
isSilence: z.boolean().optional().default(false)
})

/**
Expand Down
2 changes: 1 addition & 1 deletion server/api/functional-behaviors/index.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const querySchema = z.object({
name: z.string().optional(),
statement: z.string().optional(),
priority: z.nativeEnum(MoscowPriority).optional(),
isSilence: z.boolean().optional()
isSilence: z.boolean().optional().default(false)
})

/**
Expand Down
2 changes: 1 addition & 1 deletion server/api/glossary-terms/index.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const querySchema = z.object({
solutionId: z.string().uuid(),
name: z.string().optional(),
statement: z.string().optional(),
isSilence: z.boolean().optional()
isSilence: z.boolean().optional().default(false)
})

/**
Expand Down
2 changes: 1 addition & 1 deletion server/api/invariants/index.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const querySchema = z.object({
solutionId: z.string().uuid(),
name: z.string().optional(),
statement: z.string().optional(),
isSilence: z.boolean().optional()
isSilence: z.boolean().optional().default(false)
})

/**
Expand Down
2 changes: 1 addition & 1 deletion server/api/justifications/index.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const querySchema = z.object({
solutionId: z.string().uuid(),
name: z.string().optional(),
statement: z.string().optional(),
isSilence: z.boolean().optional()
isSilence: z.boolean().optional().default(false)
})

/**
Expand Down
2 changes: 1 addition & 1 deletion server/api/limits/index.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const querySchema = z.object({
solutionId: z.string().uuid(),
name: z.string().optional(),
statement: z.string().optional(),
isSilence: z.boolean().optional()
isSilence: z.boolean().optional().default(false)
})

/**
Expand Down
2 changes: 1 addition & 1 deletion server/api/non-functional-behaviors/index.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const querySchema = z.object({
name: z.string().optional(),
statement: z.string().optional(),
priority: z.nativeEnum(MoscowPriority).optional(),
isSilence: z.boolean().optional()
isSilence: z.boolean().optional().default(false)
})

/**
Expand Down
2 changes: 1 addition & 1 deletion server/api/obstacles/index.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const querySchema = z.object({
solutionId: z.string().uuid(),
name: z.string().optional(),
statement: z.string().optional(),
isSilence: z.boolean().optional()
isSilence: z.boolean().optional().default(false)
})

/**
Expand Down
2 changes: 1 addition & 1 deletion server/api/outcomes/index.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const querySchema = z.object({
solutionId: z.string().uuid(),
name: z.string().optional(),
statement: z.string().optional(),
isSilence: z.boolean().optional()
isSilence: z.boolean().optional().default(false)
})

/**
Expand Down
2 changes: 1 addition & 1 deletion server/api/persons/index.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const querySchema = z.object({
name: z.string().optional(),
statement: z.string().optional(),
email: z.string().email().optional(),
isSilence: z.boolean().optional()
isSilence: z.boolean().optional().default(false)
})

/**
Expand Down
2 changes: 1 addition & 1 deletion server/api/stakeholders/index.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const querySchema = z.object({
influence: z.number().min(0).max(100).optional(),
segmentation: z.nativeEnum(StakeholderSegmentation).optional(),
category: z.nativeEnum(StakeholderCategory).optional(),
isSilence: z.boolean().optional()
isSilence: z.boolean().optional().default(false)
})

/**
Expand Down
2 changes: 1 addition & 1 deletion server/api/system-components/index.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const querySchema = z.object({
name: z.string().optional(),
statement: z.string().optional(),
parentComponentId: z.string().uuid().optional(),
isSilence: z.boolean().optional()
isSilence: z.boolean().optional().default(false)
})

/**
Expand Down
2 changes: 1 addition & 1 deletion server/api/use-cases/index.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const querySchema = z.object({
mainSuccessScenario: z.string().optional(),
successGuaranteeId: z.string().uuid().optional(),
extensions: z.string().optional(),
isSilence: z.boolean().optional()
isSilence: z.boolean().optional().default(false)
})

/**
Expand Down
2 changes: 1 addition & 1 deletion server/api/user-stories/index.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const querySchema = z.object({
priority: z.nativeEnum(MoscowPriority).optional(),
outcomeId: z.string().uuid().optional(),
functionalBehaviorId: z.string().uuid().optional(),
isSilence: z.boolean().optional()
isSilence: z.boolean().optional().default(false)
})

/**
Expand Down

0 comments on commit 726e4a5

Please sign in to comment.