Skip to content
10 changes: 0 additions & 10 deletions src/schema-validation.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"ajvNotStrictMode": [
"abc-clinical-demand-forecast-5.1.0.json",
"abc-supply-plan-14.1.0.json",
"appsettings.json",
"aurora-1.0.json",
"aurora-1.1.json",
"aurora-1.2.json",
Expand Down Expand Up @@ -35,7 +34,6 @@
"codeship-steps.json",
"commitlintrc.json",
"compile-commands.json",
"creatomic.json",
"dart-test.json",
"datalogic-scan2deploy-android.json",
"datalogic-scan2deploy-ce.json",
Expand Down Expand Up @@ -115,7 +113,6 @@
"gaspar-1.0.json",
"gaspar-3.0.json",
"github-action.json",
"github-funding.json",
"github-workflow.json",
"helmfile.json",
"hemtt-0.6.2.json",
Expand Down Expand Up @@ -147,7 +144,6 @@
"mprocs-0.6.4.json",
"nest-cli.json",
"netlify.json",
"nightwatch.json",
"now.json",
"nuget-project-3.3.0.json",
"nuget-project.json",
Expand Down Expand Up @@ -190,12 +186,10 @@
"renovate-global-schema-43.json",
"renovate-inherited-schema-42.json",
"renovate-inherited-schema-43.json",
"resjson.json",
"sarif-1.0.0.json",
"sigmacv.json",
"size-limit.json",
"solidaritySchema.json",
"sprite.json",
"stylelintrc.json",
"taurus.json",
"template.json",
Expand Down Expand Up @@ -237,10 +231,6 @@
"lsdlschema-3.1.json",
"lsdlschema-3.2.json",
"lsdlschema-3.3.json",
"lsdlschema-3.4.json",
"lsdlschema-3.5.json",
"lsdlschema-4.0.json",
"lsdlschema-4.1.json",
"lsdlschema.json",
"nodemon.json",
"openhab-5.1.json",
Expand Down
80 changes: 63 additions & 17 deletions src/schemas/json/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
}
},
"pwa": {
"type": "object",
"properties": {
"cacheId": {
"description": "The cache identifier of the service worker (can be any string). Change this property to force the service worker to reload in browsers.",
Expand Down Expand Up @@ -70,6 +71,7 @@
}
},
"ElmahIo": {
"type": "object",
"properties": {
"ApiKey": {
"description": "An elmah.io API key with the Messages | Write permission.",
Expand Down Expand Up @@ -285,6 +287,7 @@
"$ref": "#/definitions/logLevel"
},
"Console": {
"type": "object",
"properties": {
"LogLevel": {
"$ref": "#/definitions/logLevel"
Expand Down Expand Up @@ -322,34 +325,39 @@
}
},
"EventSource": {
"type": "object",
"properties": {
"LogLevel": {
"$ref": "#/definitions/logLevel"
}
}
},
"Debug": {
"type": "object",
"properties": {
"LogLevel": {
"$ref": "#/definitions/logLevel"
}
}
},
"EventLog": {
"type": "object",
"properties": {
"LogLevel": {
"$ref": "#/definitions/logLevel"
}
}
},
"ElmahIo": {
"type": "object",
"properties": {
"LogLevel": {
"$ref": "#/definitions/logLevel"
}
}
},
"ElmahIoBreadcrumbs": {
"type": "object",
"properties": {
"LogLevel": {
"$ref": "#/definitions/logLevel"
Expand Down Expand Up @@ -393,7 +401,14 @@
"default": false
},
"throwConfigExceptions": {
"type": ["boolean", "null"],
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"description": "Throws an exception when there is a config error? If not set, then throwExceptions will be used for this setting.",
"default": false
},
Expand Down Expand Up @@ -469,7 +484,17 @@
},
"patternProperties": {
".*": {
"type": ["number", "string", "boolean"]
"anyOf": [
{
"type": "number"
},
{
"type": "string"
},
{
"type": "boolean"
}
]
}
}
},
Expand Down Expand Up @@ -691,15 +716,16 @@
"additionalProperties": false
},
"MinimumLevel": {
"type": ["string", "object"],
"title": "Minimum LogLevel Threshold",
"description": "Minimum LogLevel Threshold. (Support dynamic reload if the underlying IConfigurationProvider supports it)",
"oneOf": [
{
"$ref": "#/definitions/Serilog/definitions/SerilogLogEventLevel"
"$ref": "#/definitions/Serilog/definitions/SerilogLogEventLevel",
"type": "string"
},
{
"$ref": "#/definitions/Serilog/definitions/DetailedMinimumLevel"
"$ref": "#/definitions/Serilog/definitions/DetailedMinimumLevel",
"type": "object"
}
]
},
Expand Down Expand Up @@ -886,7 +912,17 @@
"required": ["Name"]
},
"MethodCallReferenceItem": {
"type": ["string", "object", "null"],
"anyOf": [
{
"type": "string"
},
{
"type": "object"
},
{
"type": "null"
}
],
"oneOf": [
{
"$ref": "#/definitions/Serilog/definitions/CSharpMethodName"
Expand All @@ -897,17 +933,27 @@
]
},
"MethodCallReference": {
"type": ["array", "string", "object"],
"minLength": 1,
"pattern": "^(?<CSharpMethodName>[a-zA-Z_]\\w*)$",
"minItems": 1,
"uniqueItems": true,
"items": {
"$ref": "#/definitions/Serilog/definitions/MethodCallReferenceItem"
},
"additionalProperties": {
"$ref": "#/definitions/Serilog/definitions/MethodCallReferenceItem"
}
"anyOf": [
{
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"$ref": "#/definitions/Serilog/definitions/MethodCallReferenceItem"
}
},
{
"type": "string",
"minLength": 1,
"pattern": "^(?<CSharpMethodName>[a-zA-Z_]\\w*)$"
},
{
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/Serilog/definitions/MethodCallReferenceItem"
}
}
]
},
"CSharpMethodName": {
"type": "string",
Expand Down
49 changes: 35 additions & 14 deletions src/schemas/json/creatomic.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://json.schemastore.org/creatomic.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/creatomic.json",
"properties": {
"tslint.enable": {
"type": "boolean",
Expand All @@ -14,10 +14,17 @@
"scope": "resource"
},
"tslint.rulesDirectory": {
"type": ["string", "array"],
"items": {
"type": "string"
},
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "An additional rules directory",
"default": "",
"scope": "resource"
Expand All @@ -41,10 +48,17 @@
"scope": "resource"
},
"tslint.exclude": {
"type": ["string", "array"],
"items": {
"type": "string"
},
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "Configure glob patterns of file paths to exclude from linting",
"scope": "resource"
},
Expand All @@ -62,10 +76,17 @@
"scope": "resource"
},
"tslint.autoFixOnSave": {
"type": ["boolean", "array"],
"items": {
"type": "string"
},
"anyOf": [
{
"type": "boolean"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"default": false,
"description": "Turns auto fix on save on or off, or defines which rules (e.g. `no-var-keyword`) to auto fix on save.",
"scope": "resource"
Expand Down
4 changes: 4 additions & 0 deletions src/schemas/json/github-workflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,10 @@
"statuses": {
"$ref": "#/definitions/permissions-level"
},
"vulnerability-alerts": {
"type": "string",
"enum": ["read", "none"]
},
"copilot-requests": {
"type": "string",
"enum": ["write"]
Expand Down
5 changes: 3 additions & 2 deletions src/schemas/json/label-commenter-config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/label-commenter-config.json",
"$comment": "https://github.com/peaceiris/actions-label-commenter",
"definitions": {
"labelItem": {
Expand Down Expand Up @@ -51,7 +52,6 @@
}
},
"description": "Configuration for Actions Label Commenter, for posting messages triggered by labels.",
"id": "https://json.schemastore.org/label-commenter-config.json",
"properties": {
"comment": {
"title": "Comment",
Expand All @@ -72,6 +72,7 @@
"type": "array",
"items": {
"$ref": "#/definitions/labelType",
"type": "object",
"title": "Label",
"properties": {
"name": {
Expand Down
4 changes: 2 additions & 2 deletions src/schemas/json/lsdlschema-0.7.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"properties": {
"Version": {
"description": "Version of LSDL",
"enum": ["0.7.0"]
"const": "0.7.0"
},
"Language": {
"description": "Target language for the linguistic schema",
Expand Down Expand Up @@ -388,7 +388,7 @@
"properties": {
"Type": {
"description": "The part of speech of the term",
"enum": ["Noun"]
"const": "Noun"
},
"State": {
"$ref": "#/definitions/state",
Expand Down
4 changes: 2 additions & 2 deletions src/schemas/json/lsdlschema-1.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"properties": {
"Version": {
"description": "Version of LSDL",
"enum": ["1.0.0"]
"const": "1.0.0"
},
"Language": {
"description": "Target language for the linguistic schema",
Expand Down Expand Up @@ -412,7 +412,7 @@
"properties": {
"Type": {
"description": "The part of speech of the term",
"enum": ["Noun"]
"const": "Noun"
},
"State": {
"$ref": "#/definitions/state",
Expand Down
2 changes: 1 addition & 1 deletion src/schemas/json/lsdlschema-2.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"properties": {
"Version": {
"description": "Version of LSDL",
"enum": ["2.0.0"]
"const": "2.0.0"
},
"Language": {
"description": "Target language for the linguistic schema",
Expand Down
2 changes: 1 addition & 1 deletion src/schemas/json/lsdlschema-3.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"properties": {
"Version": {
"description": "Version of LSDL",
"enum": ["3.0.0"]
"const": "3.0.0"
},
"Language": {
"description": "Target language for the linguistic schema",
Expand Down
Loading