Closed r6e closed 4 years ago
Any chance this might have been fixed by #6? It was just merged this morning.
@nchlswhttkr Looks like the actual merge took place almost exactly 5 minutes after I submitted this. Fastest turnaround on an issue ever 😄 Thanks for handling; much appreciated.
Problem
Using a conditional in a
pipeline.yml
file causes validation to fail with the following message:Property if is not allowed.
. Shown here using the example from the Buildkite documentation, Using Conditionals:Suspected Cause
It appears as though the schema does not currently support the
if
property. Theschema.json
does not have any attribute"if"
within thecommandStep
.Conditional properties were introduced approximately three months ago, so it seems likely that the schema simply has not yet been updated.
Suggested Fix
It seems likely that the fix will be similar to that in #4. This case may be simpler, as the documentation indicates only strings are supported by this property.