Author Posts

May 1, 2018 at 12:12 am

I have a issue where platyps is not generating an accepted values list on parameters that are using validateset.

This is what my parameters look like that have use validateset and it shows up in the functions MD file.
PARAMETER
[ValidateSet('Computer', 'ComputerIT', 'ComputerWhiteList', 'Laptops')]
[String]$SubOU = 'Computer'

SNIP FROM THE MD FILE
One of the parameters
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: Computer, ComputerIT, ComputerWhiteList, Laptop

—————————
The problem I'm having is other parameters that are using validate set do not have the Accepted Values section in the MD file.
I tried running update-markdownhelp and deleting the md file and running new-markdownhelp. Maybe I'm missing something.

May 19, 2018 at 2:05 pm

Have you looked into opening an issue on the PlatyPS project itself?