feat: provide a schema file for dartgun.toml

This commit is contained in:
Youwen Wu 2024-06-26 17:46:37 -07:00
parent 132a586f36
commit 6c7922d905
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

34
dartgun.schema.json Normal file
View file

@ -0,0 +1,34 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"dots": {
"type": "array",
"items": {
"type": "object",
"properties": {
"location": {
"type": "string"
},
"destination": {
"type": "string"
},
"strategy": {
"type": "string",
"enum": ["symlink"]
},
"identifiers": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": ["location", "destination", "identifiers"],
"additionalProperties": false
}
}
},
"required": ["dots"],
"additionalProperties": false
}