Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema for config.yml #7311

Open
cshaa opened this issue Oct 23, 2024 · 2 comments
Open

Schema for config.yml #7311

cshaa opened this issue Oct 23, 2024 · 2 comments
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality

Comments

@cshaa
Copy link
Contributor

cshaa commented Oct 23, 2024

Right now, setting up config.yml without intellisense kind of sucks. It would be great if Decap CMS maintained a JSON schema closely matching the config.yml docs, which could be loaded via yaml-language-server and used to provide type checking and intellisense.

@cshaa cshaa added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Oct 23, 2024
@cshaa
Copy link
Contributor Author

cshaa commented Oct 23, 2024

I quickly put together an example schema, here. If the devs here don't want to maintain the schema, I'll publish it on https://schemastore.org/, but that way it could easily get out of sync with the repo.

@bmackinney
Copy link
Contributor

Related: #7006 There's another schema here: https://github.com/talves/json-schema-validator-example/blob/main/schema.json

The schema should be reflected from the source, not hand-written from the docs repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

No branches or pull requests

3 participants
@bmackinney @cshaa and others