Closed nobodywasishere closed 8 months ago
Here are some examples of it with existing shard.yml
s
Here are some of the errors it catches, alongside general format/form errors:
It currently doesn't verify dependency version:
tags, the crystal:
version tag, or the github/gitlab/bitbucket user/repo
format
Is there anything else that needs to be done for this?
SchemaStore/schemastore#3669
Implements #622. I can add automated tests if desired. After this, I can add it to JSON Schema Store.
I wasn't sure if we should restrict additional properties in the file, as there may be other tools that add stuff to the shard.yml. Off the top of my head, I can't remember any though, and they should probably move those kinds of things to their own config file.
Also if you're using VSCode, you can add this to the
.vscode/settings.json
and it will use the schema to vaidate the shard.yml that shards uses. I used this for testing.