Skip to content

Commit 2f02ce9

Browse files
[Update] snapshot config schema
1 parent 2e5c3c6 commit 2f02ce9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

schemas/config.schema.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,17 @@
110110
"type": "object",
111111
"required": [
112112
"color",
113+
"enable",
113114
"font_family",
114115
"separator"
115116
],
116117
"properties": {
117118
"color": {
118119
"type": "string"
119120
},
121+
"enable": {
122+
"type": "boolean"
123+
},
120124
"font_family": {
121125
"type": "string"
122126
},
@@ -128,8 +132,7 @@
128132
"Code": {
129133
"type": "object",
130134
"required": [
131-
"content",
132-
"has_breadcrumbs"
135+
"content"
133136
],
134137
"properties": {
135138
"content": {
@@ -141,9 +144,6 @@
141144
"null"
142145
]
143146
},
144-
"has_breadcrumbs": {
145-
"type": "boolean"
146-
},
147147
"highlight_lines": {
148148
"default": [],
149149
"type": "array",
@@ -178,6 +178,7 @@
178178
"description": "Breadcrumbs is a useful and unique feature of CodeSnap, it can help users to understand the code location in the project. If the `has_breadcrumbs` is true, CodeSnap will display the `file_path` on top of the code.\n\nThe code snapshot is different from normal screenshots, it should provide more information about the code, such as the file path, the line number and highlight code line, these information can help users to understand the code better.",
179179
"default": {
180180
"color": "",
181+
"enable": false,
181182
"font_family": "",
182183
"separator": ""
183184
},

0 commit comments

Comments
 (0)