Skip to content
Open
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
9 changes: 6 additions & 3 deletions src/schema-validation.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@
"lgtm.json",
"libman.json",
"lintstagedrc.schema.json",
"mdxlintrc.json",
"metricshub.json",
"metricshub-connector.json",
"minecraft-advancement.json",
Expand Down Expand Up @@ -228,8 +227,6 @@
"putout.json",
"pyrseas-0.8.json",
"pylock.json",
"rehyperc.json",
"remarkrc.json",
"renovate-39.json",
"renovate-40.json",
"renovate-41.json",
Expand Down Expand Up @@ -1307,6 +1304,9 @@
"maturin.json": {
"unknownFormat": ["uint16"]
},
"mdxlintrc.json": {
"externalSchema": ["remarkrc.json"]
},
"minecraft-advancement.json": {
"externalSchema": ["base.json"]
},
Expand Down Expand Up @@ -1508,6 +1508,9 @@
"rancher-fleet-0.8.json": {
"externalSchema": ["base.json"]
},
"rehyperc.json": {
"externalSchema": ["remarkrc.json"]
},
"renovate-41.json": {
"unknownKeywords": ["allowComments", "x-renovate-version"]
},
Expand Down
30 changes: 3 additions & 27 deletions src/schemas/json/mdxlintrc.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,10 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/mdxlintrc.json",
"additionalProperties": false,
"id": "https://json.schemastore.org/mdxlintrc.json",
"properties": {
"plugins": {
"description": "The plugins field, related to plugins in options, has either an array of plugin names (or paths) or plugin–options tuples, or an object mapping plugins to their options.\nPlugin options can be false, which specifies that a plugin should not be used. In all other cases, they are treated as an object, and merged by the cascade. Thus, it's possible to specify part of the options from one configuration file, and overwrite or extend it from another file.",
"oneOf": [
{
"type": "array",
"items": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"additionalItems": true,
"items": [
{
"type": "string"
}
]
}
]
}
},
{
"type": "object"
}
]
"$ref": "remarkrc.json#/properties/plugins"
},
"settings": {
"type": "object",
Expand Down
36 changes: 6 additions & 30 deletions src/schemas/json/rehyperc.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,18 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/rehyperc.json",
"additionalProperties": false,
"id": "https://json.schemastore.org/rehyperc.json",
"properties": {
"plugins": {
"description": "The plugins field, related to plugins in options, has either an array of plugin names (or paths) or plugin–options tuples, or an object mapping plugins to their options.\nPlugin options can be false, which specifies that a plugin should not be used. In all other cases, they are treated as an object, and merged by the cascade. Thus, it's possible to specify part of the options from one configuration file, and overwrite or extend it from another file.",
"oneOf": [
{
"type": "array",
"items": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"additionalItems": true,
"items": [
{
"type": "string"
}
]
}
]
}
},
{
"type": "object"
}
]
"$ref": "remarkrc.json#/properties/plugins"
},
"settings": {
"type": "object",
"additionalProperties": false,
"properties": {
"fragment": {
"description": "Specify whether to parse a fragment, instead of a complete document. In document mode, unopened html, head, and body elements are opened in just the right places.",
"type": ["boolean"],
"type": "boolean",
"default": false
},
"space": {
Expand All @@ -46,12 +22,12 @@
},
"emitParseErrors": {
"description": "Emit parse errors while parsing on the vfile.\n\nSetting this to true starts emitting HTML parse errors.\n\nSpecific rules can be turned off by setting them to false (or 0). The default, when emitParseErrors: true, is true (or 1), and means that rules emit as warnings. Rules can also be configured with 2, to turn them into fatal errors.",
"type": ["boolean"],
"type": "boolean",
"default": false
},
"verbose": {
"description": "Patch extra positional information. If specified, the following element:",
"type": ["boolean"],
"type": "boolean",
"default": false
},
"entities": {
Expand Down
70 changes: 50 additions & 20 deletions src/schemas/json/remarkrc.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,62 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/remarkrc.json",
"additionalProperties": false,
"id": "https://json.schemastore.org/remarkrc.json",
"properties": {
"plugins": {
"description": "The plugins field, related to plugins in options, has either an array of plugin names (or paths) or plugin–options tuples, or an object mapping plugins to their options.\nPlugin options can be false, which specifies that a plugin should not be used. In all other cases, they are treated as an object, and merged by the cascade. Thus, it's possible to specify part of the options from one configuration file, and overwrite or extend it from another file.",
"definitions": {
"partialPluginOptions": {
"oneOf": [
{
"type": "array",
"items": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"additionalItems": true,
"items": [
{
"type": "string"
},
{
"type": "object",
"patternProperties": {
".*": {
"type": "boolean"
}
}
}
]
},
"pluginArray": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/definitions/partialPluginOptions"
},
{
"type": "array",
"items": {
"anyOf": [
{
"$ref": "#/definitions/partialPluginOptions"
},
{
"type": "array",
"items": {
"type": "string"
}
]
}
]
}
]
}
}
]
}
},
"pluginObject": {
"type": "object"
}
},
"properties": {
"plugins": {
"description": "The plugins field, related to plugins in options, has either an array of plugin names (or paths) or plugin–options tuples, or an object mapping plugins to their options.\nPlugin options can be false, which specifies that a plugin should not be used. In all other cases, they are treated as an object, and merged by the cascade. Thus, it's possible to specify part of the options from one configuration file, and overwrite or extend it from another file.",
"oneOf": [
{
"$ref": "#/definitions/pluginArray"
},
{
"type": "object"
"$ref": "#/definitions/pluginObject"
}
]
},
Expand Down
Loading