Skip to content

Add fix to return enum string values #800

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
May 21, 2025

Conversation

Gijsreyn
Copy link
Contributor

@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
Contributor 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
Contributor 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