crystal-lang / shards

Dependency manager for the Crystal language
Other
758 stars 99 forks source link

Create `shard.yml.schema` #622

Closed nobodywasishere closed 3 months ago

nobodywasishere commented 3 months ago

It would be useful to provide a JSON schema for the shard.yml, allowing for IDE validation and documentation while editing the shard.yml. Ideally, this would then be added to JSON Schema Store for direct IDE support. I can implement this and create a PR if it would be accepted.

straight-shoota commented 3 months ago

That would be really lovely. 😍

shard.lock and lib/.shards.info are also standardized YAML formats. However, they're only meant to be written automatically and not expected to be edited. So I suppose a schema wouldn't be much useful there.