function Test-AlkamiApiComponentManifest10 { <# .SYNOPSIS Please don't use this file by hand, please use Test-AlkamiManifest This function is intended to validate the ApiComponentManifest dotted object/hashtable so we can ensure that the values provided meet a minimum standard of validity .PARAMETER ApiComponentManifest A dotted object ([xml](Get-Content -Path $somePath)) or hashtable of values #> [CmdletBinding()] [OutputType([System.Collections.Hashtable])] Param( [Parameter(Position = 0, Mandatory = $true)] [ValidateNotNullOrEmpty()] [object]$ApiComponentManifest ) $success = $true $resultMessages = @() if ([string]::IsNullOrWhiteSpace($ApiComponentManifest.targetApp)) { $resultMessages += 'The ApiComponent manifest target App is not present. This is required and should be a valid Package name.' $success = $false } return @{ success = $success results = $resultMessages } }