You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fixing #444: Template Output Data Types
* Adding positive/negative tests
* Expanding list of acceptable data type coercion functions
* Adding Length to -AllowedFunctionInOutput
* Adding boolean case to failure
* Adding Tracing for CI/CD debugging
* More tracing for debugging CI/CD
* Adding -Debug support to test functions
* Adding -Debug to the Outputs-Must-Be-Present-In-Template-Parameters
* Updating failure case (making JSON more correct)
* Fixing casing in createUiDefinition filename
* Cleaning up CI/CD debugging
* Outputs-Must-Be-Present-In-Template-Parameters: Switching to warning. Adding notes.
* Outputs-Must-Be-Present-In-Template-Parameters: Switching to warning. Adding notes.
# If the TemplateObject is inner template of MainTemplate, skip the test
28
45
if ($IsInnerTemplate) {
29
46
return
30
47
}
31
48
49
+
50
+
32
51
# First, make sure CreateUIDefinition has outputs
33
52
if (-not$CreateUIDefinitionObject.parameters.outputs) {
34
53
Write-Error"CreateUIDefinition is missing the .parameters.outputs property"-ErrorId CreateUIDefinition.Missing.Outputs # ( write an error if it doesn't)
@@ -52,4 +71,16 @@ foreach ($output in $parameterInfo.outputs.psobject.properties) { # Then walk th
52
71
# write an error
53
72
Write-Error"output $outputName does not exist in template.parameters"-ErrorId CreateUIDefinition.Output.Missing.From.MainTemplate -TargetObject $parameterInfo.outputs
if ($outputParameterType-eq$af.Key-and$firstOutputFunction-notin$af.Value) {
81
+
Write-Warning"output $outputName does not return the expected type '$outputParameterType'"-ErrorId CreateUIDefinition.Output.Incorrect -TargetObject $parameterInfo.outputs
0 commit comments