We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f2b4329 + 0fc5bb5 commit ec198feCopy full SHA for ec198fe
scripts/validate-model.ps1
@@ -70,7 +70,7 @@ foreach ($obj in $m.endpoints) {
70
foreach ($obj in $m.screens) {
71
if (-not $obj.id) { Fail "screens: object missing 'id'" }
72
if (-not $obj.route) { Fail "screens: '$($obj.id)' missing 'route'" }
73
- if ($null -eq $obj.api_calls) { Fail "screens: '$($obj.id)' missing 'api_calls' (use [] not null)" }
+ if (-not (HasProp $obj "api_calls")) { Fail "screens: '$($obj.id)' missing 'api_calls'" }
74
}
75
76
foreach ($obj in $m.literals) {
0 commit comments