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

YAML section #327

Closed
schickling opened this issue Aug 21, 2017 · 3 comments · Fixed by #2113
Closed

YAML section #327

schickling opened this issue Aug 21, 2017 · 3 comments · Fixed by #2113

Comments

@schickling
Copy link

Since more and more projects/frameworks are using YAML as their configuration format and it's fairly easy to apply JSON Schema to YAML, I think it would make a lot of sense to add a new section YAML to the schemastore.

Would you be open to this idea? I'd love to contribute a couple of schemas for popular frameworks and tools.

@madskristensen
Copy link
Contributor

Is there such as thing as YAML Schema? Wouldn't they be able to use any JSON schema? Also, are there any editors/IDEs or validators supporting YAML schemas?

@schickling
Copy link
Author

I'm not aware that there is such a thing as "YAML Schema", however you can convert any YAML file to JSON and apply JSON schema and propagate back the validation results/errors. In fact this provides an extremely nice workflow.

Some frameworks even support both a .json and a .yml configuration option, but since schemastore is also used as a "key value store" from e.g. .babelrc to the JSON schema, it would be great if this could also work for YAML. (Example serverless.yml and serverless.json should both refer to the JSON schema of serverless)

@yihongang
Copy link
Contributor

should this be closed since we have the YAML language server and PRs like #368?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants