buildkite / pipeline-schema

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

Group is missing `if` #54

Closed lxfontes closed 1 year ago

lxfontes commented 1 year ago

👋 hello!

groupStep is missing the if attribute.

Screenshot 2023-03-08 at 10 13 38 AM
Tyler-2 commented 1 year ago

I dropped a PR for this but I have no idea how to get it approved.

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.