Skip to content

Commit f676e37

Browse files
authored
Add $schema property to schema.json (#919)
This will allow one to link the schema directly in the file, as supported by editors like VSCode and Zed by default. Example: ```json { "$schema": "https://raw.githubusercontent.com/sql-formatter-org/sql-formatter/refs/heads/master/schema.json", "language": "sqlite", "tabWidth": 2, "keywordCase": "upper", } ```
2 parents 976f97d + 5df3046 commit f676e37

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"additionalProperties": false,
66
"type": "object",
77
"properties": {
8+
"$schema": {
9+
"type": "string",
10+
"description": "The schema to verify this document against."
11+
},
812
"dataTypeCase": {
913
"description": "Converts data types to upper- or lowercase.",
1014
"$ref": "#/$defs/casing"

0 commit comments

Comments
 (0)