Skip to content

[MAINT] Convert all usage of deprecated ValidateFunc to ValidateDiagFunc#3195

Merged
stevehipwell merged 7 commits intointegrations:mainfrom
F-Secure-web:validatefunc-cleanup
Feb 20, 2026
Merged

[MAINT] Convert all usage of deprecated ValidateFunc to ValidateDiagFunc#3195
stevehipwell merged 7 commits intointegrations:mainfrom
F-Secure-web:validatefunc-cleanup

Conversation

@deiga
Copy link
Copy Markdown
Collaborator

@deiga deiga commented Feb 15, 2026


Before the change?

  • Some of our code was using deprecated ValidateFunc
  • Some of our code was using a custom toDiagFunc function

After the change?

  • All validation code uses ValidateDiagFunc
  • Custom toDiagFunc usage has been replaced with validation.ToDiagFunc

Pull request checklist

  • Schema migrations have been created if needed (example)
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

@deiga deiga changed the title Convert all usage of deprecated ValidateFunc to ValidateDiagFunc [MAINT] Convert all usage of deprecated ValidateFunc to ValidateDiagFunc Feb 15, 2026
@github-actions
Copy link
Copy Markdown

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

@deiga deiga added Deprecation Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR labels Feb 15, 2026
@deiga deiga requested a review from stevehipwell February 15, 2026 19:43
@deiga deiga force-pushed the validatefunc-cleanup branch from 06d6dd4 to e487d8f Compare February 15, 2026 20:35
Copy link
Copy Markdown
Collaborator

@stevehipwell stevehipwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@deiga could you please rebase this?

@stevehipwell stevehipwell added this to the v6.12.0 Release milestone Feb 16, 2026
@deiga deiga force-pushed the validatefunc-cleanup branch from e487d8f to e19484e Compare February 16, 2026 18:29
@deiga
Copy link
Copy Markdown
Collaborator Author

deiga commented Feb 16, 2026

@stevehipwell Done

@deiga deiga force-pushed the validatefunc-cleanup branch from e19484e to e431203 Compare February 17, 2026 20:57
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
@deiga deiga force-pushed the validatefunc-cleanup branch from e431203 to f05e058 Compare February 20, 2026 10:09
@stevehipwell stevehipwell enabled auto-merge (squash) February 20, 2026 10:10
@stevehipwell stevehipwell merged commit d3260bf into integrations:main Feb 20, 2026
7 checks passed
@deiga deiga deleted the validatefunc-cleanup branch February 20, 2026 10:16
JiayangZhou pushed a commit to JiayangZhou/terraform-provider-github that referenced this pull request Apr 16, 2026
…unc (integrations#3195)

* Convert all usage of deprecated `ValidateFunc` to `ValidateDiagFunc`

Signed-off-by: Timo Sand <timo.sand@f-secure.com>

* replace homebrew `toDiagFunc` with `validation.ToDiagFunc`

Signed-off-by: Timo Sand <timo.sand@f-secure.com>

* fixup! Correct test after validation simplification

Signed-off-by: Timo Sand <timo.sand@f-secure.com>

* fixup! Fix GH Tead DS test

Signed-off-by: Timo Sand <timo.sand@f-secure.com>

* Fix repo test

Signed-off-by: Timo Sand <timo.sand@f-secure.com>

* Fix failing test

Signed-off-by: Timo Sand <timo.sand@f-secure.com>

* Remove unnecessary abstraction with `reconfigureVisibility`

Signed-off-by: Timo Sand <timo.sand@f-secure.com>

---------

Signed-off-by: Timo Sand <timo.sand@f-secure.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Deprecation Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants