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

Request: Publish a json schema for use with semaphore YAML files #1230

Open
bbugh opened this issue Aug 23, 2022 · 2 comments
Open

Request: Publish a json schema for use with semaphore YAML files #1230

bbugh opened this issue Aug 23, 2022 · 2 comments
Assignees

Comments

@bbugh
Copy link

bbugh commented Aug 23, 2022

schemastore.org is tracking JSON schemas. RedHat's yaml-language-server supports JSON schema parsing for YAML files pulled from schemastore.org. Many systems are using it now: GitHub's actions and workflows, graphql-code-generator's codegen.yml, CircleCI's config.yml, etc.

It's nice to have a linter in the CLI, but it would be very helpful for self-documenting files and validation if the semaphore.yml schema was published to schemastore.org, which tools (including yaml-language-server) could use to validate. There's lots of different ways to generate them.

schemaphore

@pieterocp
Copy link

Yeah, this is a big qol upgrade since you can get much faster feedback loops over having to push repeatedly when fiddling with config. It should only take about a week or so to get a decent working version together.

Given there is a 41:1 ROI using semaphore, you can claim even more with speedier feedback.

@pieterocp
Copy link

Until this is done, I've had to slap a docblock at the top (like below) so it doesn't think it's a appveyor file and suggests bad changes.

# yaml-language-server: $schema=https://json.schemastore.org/yamllint.json

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

No branches or pull requests

3 participants