Skip to content

Convert custom attribute ValidatePathNotInSettings to function - #9406

Merged
Aditya Patwardhan (adityapatwardhan) merged 1 commit into
PowerShell:masterfrom
adityapatwardhan:FixInstallPS
Apr 18, 2019
Merged

Aditya Patwardhan (adityapatwardhan) merged 1 commit into
PowerShell:masterfrom
adityapatwardhan:FixInstallPS

Conversation

@adityapatwardhan

@adityapatwardhan Aditya Patwardhan (adityapatwardhan) commented Apr 18, 2019 •

Copy link
Copy Markdown
Member

PR Summary

PR #9271 broke the attribute validation on the Add-PathTToSettings function. This PR converts the custom attribute to a function and validates using ValidateScript attribute.

PR Context

We cannot use custom attribute as classes are not supported on PowerShell versions below 5.0.

PR Checklist

@adityapatwardhan
Aditya Patwardhan (adityapatwardhan) merged commit 99c3fd1 into PowerShell:master Apr 18, 2019
@adityapatwardhan Aditya Patwardhan (adityapatwardhan) added the CL-NotInBuild Indicates that a PR is reverted and not part of the build. label Apr 18, 2019
@TravisEz13 Travis Plunk (TravisEz13) added CL-Tools Indicates that a PR should be marked as a tools change in the Change Log and removed CL-NotInBuild Indicates that a PR is reverted and not part of the build. labels Apr 18, 2019
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-Tools Indicates that a PR should be marked as a tools change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants