Skip to content
Merged
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
1 change: 1 addition & 0 deletions src/schemas/json/jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -963,6 +963,7 @@
"ESNext.BigInt",
"ESNext.Collection",
"ESNext.Intl",
"ESNext.Iterator",
"ESNext.Object",
"ESNext.Promise",
"ESNext.Regexp",
Expand Down
4 changes: 4 additions & 0 deletions src/schemas/json/nest-cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
"watch": {
"type": "boolean",
"description": "Whether to watch files for changes or not."
},
"swcrcPath": {
"type": "string",
"description": "Path to SWC config file to use."
}
}
}
Expand Down
52 changes: 31 additions & 21 deletions src/schemas/json/tombi.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,19 +169,19 @@
"description": "Whether to enable hover.",
"anyOf": [
{
"$ref": "#/definitions/Enabled"
"$ref": "#/definitions/BoolDefaultTrue"
},
{
"type": "null"
}
],
"default": true
]
}
},
"additionalProperties": false
},
"Enabled": {
"type": "boolean"
"BoolDefaultTrue": {
"type": "boolean",
"default": true
},
"ServerCompletion": {
"type": "object",
Expand All @@ -191,13 +191,12 @@
"description": "Whether to enable completion.\n\n **WARNING**: 🚧 This feature is experimental 🚧",
"anyOf": [
{
"$ref": "#/definitions/Enabled"
"$ref": "#/definitions/BoolDefaultTrue"
},
{
"type": "null"
}
],
"default": true
]
}
},
"additionalProperties": false
Expand All @@ -210,13 +209,12 @@
"description": "Whether to enable formatting.",
"anyOf": [
{
"$ref": "#/definitions/Enabled"
"$ref": "#/definitions/BoolDefaultTrue"
},
{
"type": "null"
}
],
"default": true
]
}
},
"additionalProperties": false
Expand All @@ -229,13 +227,12 @@
"description": "Whether to enable diagnostics.",
"anyOf": [
{
"$ref": "#/definitions/Enabled"
"$ref": "#/definitions/BoolDefaultTrue"
},
{
"type": "null"
}
],
"default": true
]
}
},
"additionalProperties": false
Expand All @@ -247,13 +244,24 @@
"title": "Enable or disable the schema.",
"anyOf": [
{
"$ref": "#/definitions/Enabled"
"$ref": "#/definitions/BoolDefaultTrue"
},
{
"type": "null"
}
],
"default": true
]
},
"strict": {
"title": "Enable or disable strict schema validation.",
"description": "If `additionalProperties` is not specified in the JSON Schema,\n the strict mode treats it as `additionalProperties: false`,\n which is different from the JSON Schema specification.",
"anyOf": [
{
"$ref": "#/definitions/BoolDefaultTrue"
},
{
"type": "null"
}
]
},
"catalog": {
"title": "Schema catalog options.",
Expand Down Expand Up @@ -317,6 +325,7 @@
]
},
"RootSchema": {
"title": "The schema for the root table.",
"type": "object",
"properties": {
"toml-version": {
Expand Down Expand Up @@ -349,23 +358,24 @@
"x-tombi-table-keys-order": "schema"
},
"SubSchema": {
"title": "The schema for the sub value.",
"type": "object",
"properties": {
"path": {
"title": "The schema path.",
"title": "The sub schema path.",
"type": "string"
},
"include": {
"title": "The file match pattern of the schema.",
"description": "The file match pattern to include the target to apply the schema.\n Supports glob pattern.",
"title": "The file match pattern of the sub schema.",
"description": "The file match pattern to include the target to apply the sub schema.\n Supports glob pattern.",
"type": "array",
"items": {
"type": "string"
},
"minItems": 1
},
"root-keys": {
"title": "The keys to apply the schema.",
"title": "The keys to apply the sub schema.",
"type": ["string", "null"],
"minLength": 1
}
Expand Down
1 change: 1 addition & 0 deletions src/schemas/json/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,7 @@
"ESNext.BigInt",
"ESNext.Collection",
"ESNext.Intl",
"ESNext.Iterator",
"ESNext.Object",
"ESNext.Promise",
"ESNext.Regexp",
Expand Down