Skip to content

Add validation and ShouldProcess to mail scripts#107

Merged
Tibo2403 merged 1 commit into
mainfrom
codex/apply-validation-attributes-to-properties
Aug 14, 2025
Merged

Add validation and ShouldProcess to mail scripts#107
Tibo2403 merged 1 commit into
mainfrom
codex/apply-validation-attributes-to-properties

Conversation

@Tibo2403

Copy link
Copy Markdown
Owner

Summary

  • enforce [ValidateRange(1,100)] for AlertThreshold and [ValidatePattern('^\d{2,5}$')] for SmtpPort
  • enable SupportsShouldProcess and protect email sending in DiskUsageReport and LinkCrawler scripts

Testing

  • pwsh -NoProfile -File scripts/powershell/DiskUsageReport.ps1 -Volume C -WhatIf (fails: command not found)
  • sudo apt-get update (fails: 403 Forbidden for package repositories)

https://chatgpt.com/codex/tasks/task_e_689dcde6f41883328d2819931f7fa1dd

@Tibo2403 Tibo2403 merged commit b5b05c3 into main Aug 14, 2025
0 of 4 checks passed
@Tibo2403 Tibo2403 deleted the codex/apply-validation-attributes-to-properties branch August 14, 2025 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant