Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"yaml.schemas": {
"types.json": "types.yaml"
}
}
52 changes: 52 additions & 0 deletions types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "colors",
"description": "Colors for file categories\nhttps://github.com/karlding/dirchromatic",
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"title": "color",
"description": "A color for file category\nhttps://github.com/karlding/dirchromatic",
"type": "object",
"properties": {
"colour": {
"title": "color",
"description": "A file category color\nhttps://github.com/karlding/dirchromatic",
"type": "string",
"pattern": "^0[01234];[39][0-8]$"
},
"description": {
"title": "description",
"description": "A file category description\nhttps://github.com/karlding/dirchromatic",
"type": "string",
"minLength": 1,
"pattern": "[^ ]",
"examples": [
"archive files"
]
},
"src": {
"title": "source",
"description": "File category extensions\nhttps://github.com/karlding/dirchromatic",
"type": "string",
"enum": [
"types/archive.yaml",
"types/audio.yaml",
"types/binary.yaml",
"types/build.yaml",
"types/code.yaml",
"types/config.yaml",
"types/data.yaml",
"types/doc.yaml",
"types/image-raw.yaml",
"types/image.yaml",
"types/other.yaml",
"types/video.yaml"
]
}
},
"minProperties": 3,
"additionalProperties": false
}
}