CircleCI-Public/config-preview-sdk

Provide a schema for the new config?

danielcompton opened this issue · 3 comments

I use the schemas defined in SchemaStore to help validate the CircleCI config that I write, via the RedHat VSCode YAML extension. It would be useful if this new config version was schemafied and added to the schemastore. I imagine this might only make sense once the config format is finalised though. SchemaStore/schemastore#515

Update: It looks like there is a schema already:

Configuration for the build is validated to ensure it parses as YAML and adheres to the CircleCI configuration schema (TODO: publish and link to the schema). - config-lifecycle

We'll definitely be doing this once we're positive that the schema for 2.1 is finalized--thanks for the heads up about schemastore!

any updates here @johnswanson ?

I am getting VS Code YAML errors relating to 2.1 command parameters. Getting 'Incorrect type. Expected "string".' error in the config for calling a command with a parameter value. I believe it is that the schema is not updated.