Skip to content

Commit

Permalink
feat: json schema (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilyGraceSeville7cf authored Jul 7, 2024
1 parent ddff9ba commit 67eb418
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "tran settings",
"description": "tran settings\nhttps://github.com/abdfnx/tran?tab=readme-ov-file#tran-config-file",
"type": "object",
"properties": {
"config": {
"title": "config",
"description": "tran settings\nhttps://github.com/abdfnx/tran?tab=readme-ov-file#tran-config-file",
"type": "object",
"properties": {
"borderless": {
"title": "borderless",
"description": "Whether to disable borders or not\nhttps://github.com/abdfnx/tran?tab=readme-ov-file#tran-config-file",
"type": "boolean",
"default": true
},
"editor": {
"title": "editor",
"description": "An editor\nhttps://github.com/abdfnx/tran?tab=readme-ov-file#tran-config-file",
"type": "string",
"minLength": 1,
"pattern": "[^ ]",
"default": "vim"
},
"enable_mousewheel": {
"title": "enable mouse wheel",
"description": "Whether to enable a mouse wheel or not\nhttps://github.com/abdfnx/tran?tab=readme-ov-file#tran-config-file",
"type": "boolean",
"default": true
},
"show_updates": {
"title": "show updates",
"description": "Whether to show updates or not\nhttps://github.com/abdfnx/tran?tab=readme-ov-file#tran-config-file",
"type": "boolean",
"default": true
},
"start_dir": {
"title": "starting directory",
"description": "A starting directory\nhttps://github.com/abdfnx/tran?tab=readme-ov-file#tran-config-file",
"type": "string",
"minLength": 1,
"pattern": "[^ ]",
"default": "."
}
},
"minProperties": 1,
"additionalProperties": false
}
},
"minProperties": 1,
"additionalProperties": false
}

0 comments on commit 67eb418

Please sign in to comment.