Skip to content

Add fix to return enum string values#800

Merged
SteveL-MSFT merged 15 commits intoPowerShell:mainfrom
Gijsreyn:fix-enum-output
May 21, 2025
Merged

Add fix to return enum string values#800
SteveL-MSFT merged 15 commits intoPowerShell:mainfrom
Gijsreyn:fix-enum-output

Conversation

@Gijsreyn
Copy link
Collaborator

@Gijsreyn Gijsreyn commented May 9, 2025

PR Summary

This PR addresses #791. While it is a small redesign, casting the value to a string makes logical sense. When users are exporting or getting values, they can capture the results and store them as a configuration document instead of having them returned as integers. This would match the schematics, even though that is not implemented fully.

@Gijsreyn
Copy link
Collaborator Author

@mgreenegit I'm bothering Steve too much, so I thought of giving you a heads-up. Could you take a quick look at this one? It shouldn't be that big of a change.

@Gijsreyn Gijsreyn marked this pull request as ready for review May 10, 2025 13:40
Copy link
Collaborator

@michaeltlombardi michaeltlombardi left a comment

Choose a reason for hiding this comment

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

Minor nits for readability and spacing characters.

@Gijsreyn
Copy link
Collaborator Author

Thanks @michaeltlombardi for the check. I thought there was a remark once to do it in the style Pester tests are written (OTBS). I switched the blocks in psDscAdapter.psm1 to match that style.

@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue May 21, 2025
Merged via the queue into PowerShell:main with commit ad75d30 May 21, 2025
4 checks passed
Copy link
Collaborator

@theJasonHelmick theJasonHelmick left a comment

Choose a reason for hiding this comment

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

LGTM

@Gijsreyn Gijsreyn deleted the fix-enum-output branch June 2, 2025 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants