circleci / circleci-docs

Documentation for CircleCI.
https://circleci.com/docs/
Other
791 stars 1.3k forks source link

Please provide a schema for the `config.yml`, in particular version 2.1 #8786

Closed gdubicki closed 4 weeks ago

gdubicki commented 4 months ago

Missing Information

I want to use a schema in my IDE for config.yml for automatic validation of the syntax of my config.

Already Looked

My IntelliJ IDEA uses https://www.schemastore.org but it's doesn't have a complete schema, in particular schema for v. 2.1 is missing there, see https://github.com/SchemaStore/schemastore/issues/515.

Potential Locations

I think it would be best for your users if you would help updating/provide a new schema for v 2.1 in https://www.schemastore.org, as it's a semi-standard way to provide a schema for IDEs such as VS Code or the ones from JetBrains.

gdubicki commented 4 months ago

A previous effort for this was in https://github.com/CircleCI-Public/config-preview-sdk/issues/42, but - if I am reading it right - that was in the pre-release phase of v. 2.1.

rosieyohannan commented 4 months ago

Hi @gdubicki! Thanks for your message. I'm going to ask our engineering teams about this but first wanted to see if this helps at all: https://circleci.com/docs/vs-code-extension-overview/#open-source-language-server

rosieyohannan commented 4 weeks ago

AFAIK the schema is up to date for 2.1 CircleCI config. Please reopen this issue if you disagree or if I'm misunderstanding. Thanks!