buildkite / pipeline-schema

A JSON schema for Buildkite’s pipeline file format
MIT License
31 stars 35 forks source link

fix: Allow if and input in group steps #56

Closed Tyler-2 closed 1 year ago

Tyler-2 commented 1 year ago

Fixes https://github.com/buildkite/pipeline-schema/issues/54 and https://github.com/buildkite/pipeline-schema/issues/57

I have no idea how to get this approved and merged because there is no contribution documentation.

In the meantime... you can save: https://raw.githubusercontent.com/Tyler-2/pipeline-schema/fix-if-and-input/schema.json to a local place and then open up your VSCode or VSCodium settings and navigate to Settings, Extensions, YAML, Yaml: Schemas, "Edit in settings.json".

And then add something like:

    "yaml.schemas": {

        "/home/someuser/unnecessarydownloads/schema.json": "pipeline.yml"

    },

Which will tell the yaml language server to use that schema.json for files named pipeline.yml.

Techn1x commented 1 year ago

@jonathanly @alexle @sj26 Apologies for the ping-spray, hoping one of you (being the most recent contributors) can help us out

eleanorakh commented 1 year ago

Thanks @Tyler-2, we'll take a look at this one shortly 👀

angusfretwell commented 1 year ago

Hi @Tyler-2, thanks for this! I've just added some examples to our tests for group steps and also included stringInputStep in the steps schema.