DSC icon indicating copy to clipboard operation
DSC copied to clipboard

Add fix to return enum string values

Open Gijsreyn opened this issue 6 months ago • 1 comments

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 avatar May 09 '25 14:05 Gijsreyn

@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 avatar May 10 '25 13:05 Gijsreyn

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.

Gijsreyn avatar May 20 '25 02:05 Gijsreyn