Skip to content

Commit 777f075

Browse files
ya7010yassun7010
andauthored
feat: update tombi schema. (SchemaStore#4731)
Co-authored-by: yassun7010 <[email protected]>
1 parent 1eb68e2 commit 777f075

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

src/schemas/json/tombi.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,53 @@
118118
},
119119
"LintOptions": {
120120
"type": "object",
121+
"properties": {
122+
"rules": {
123+
"title": "Lint rules.",
124+
"anyOf": [
125+
{
126+
"$ref": "#/definitions/LintRules"
127+
},
128+
{
129+
"type": "null"
130+
}
131+
]
132+
}
133+
},
134+
"additionalProperties": false,
135+
"x-tombi-table-keys-order": "schema"
136+
},
137+
"LintRules": {
138+
"type": "object",
139+
"properties": {
140+
"key-empty": {
141+
"title": "Key empty.",
142+
"description": "Check if the key is empty.\n ```toml\n \"\" = true\n ```",
143+
"anyOf": [
144+
{
145+
"$ref": "#/definitions/SeverityLevelDefaultWarn"
146+
},
147+
{
148+
"type": "null"
149+
}
150+
]
151+
}
152+
},
121153
"additionalProperties": false,
122154
"x-tombi-table-keys-order": "schema"
123155
},
156+
"SeverityLevelDefaultWarn": {
157+
"default": "warn",
158+
"allOf": [
159+
{
160+
"$ref": "#/definitions/SeverityLevel"
161+
}
162+
]
163+
},
164+
"SeverityLevel": {
165+
"type": "string",
166+
"enum": ["off", "warn", "error"]
167+
},
124168
"LspOptions": {
125169
"type": "object",
126170
"properties": {

0 commit comments

Comments
 (0)