feat(schema): deny unknown keys (#4270)

This commit is contained in:
David Knaack
2022-09-09 14:59:38 +02:00
committed by GitHub
parent 06281c268d
commit b5d3d8fcf3
83 changed files with 560 additions and 162 deletions
+155 -77
View File
@@ -1546,6 +1546,7 @@
"type": "boolean"
}
},
"additionalProperties": false,
"definitions": {
"AwsConfig": {
"title": "AWS",
@@ -1598,7 +1599,8 @@
"default": false,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"AzureConfig": {
"type": "object",
@@ -1619,7 +1621,8 @@
"default": true,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"BatteryConfig": {
"type": "object",
@@ -1666,7 +1669,8 @@
"default": "[$symbol$percentage]($style) ",
"type": "string"
}
}
},
"additionalProperties": false
},
"BatteryDisplayConfig": {
"type": "object",
@@ -1694,7 +1698,8 @@
"null"
]
}
}
},
"additionalProperties": false
},
"BufConfig": {
"type": "object",
@@ -1744,7 +1749,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"BunConfig": {
"type": "object",
@@ -1793,7 +1799,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"CConfig": {
"type": "object",
@@ -1865,7 +1872,8 @@
}
}
}
}
},
"additionalProperties": false
},
"CharacterConfig": {
"type": "object",
@@ -1902,7 +1910,8 @@
"default": false,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"CMakeConfig": {
"type": "object",
@@ -1951,7 +1960,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"CmdDurationConfig": {
"type": "object",
@@ -1994,7 +2004,8 @@
"format": "uint32",
"minimum": 0.0
}
}
},
"additionalProperties": false
},
"CobolConfig": {
"type": "object",
@@ -2045,7 +2056,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"CondaConfig": {
"type": "object",
@@ -2076,7 +2088,8 @@
"default": false,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"ContainerConfig": {
"type": "object",
@@ -2097,7 +2110,8 @@
"default": false,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"CrystalConfig": {
"type": "object",
@@ -2147,7 +2161,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"DamlConfig": {
"type": "object",
@@ -2195,7 +2210,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"DartConfig": {
"type": "object",
@@ -2249,7 +2265,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"DenoConfig": {
"type": "object",
@@ -2302,7 +2319,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"DirectoryConfig": {
"type": "object",
@@ -2375,7 +2393,8 @@
"default": true,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"DockerContextConfig": {
"type": "object",
@@ -2425,7 +2444,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"DotnetConfig": {
"type": "object",
@@ -2485,7 +2505,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"ElixirConfig": {
"type": "object",
@@ -2533,7 +2554,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"ElmConfig": {
"type": "object",
@@ -2587,7 +2609,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"EnvVarConfig": {
"type": "object",
@@ -2620,7 +2643,8 @@
"default": false,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"ErlangConfig": {
"type": "object",
@@ -2669,7 +2693,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"FillConfig": {
"type": "object",
@@ -2686,7 +2711,8 @@
"default": false,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"GcloudConfig": {
"type": "object",
@@ -2721,7 +2747,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"GitBranchConfig": {
"type": "object",
@@ -2766,7 +2793,8 @@
"default": false,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"GitCommitConfig": {
"type": "object",
@@ -2807,7 +2835,8 @@
"format": "uint",
"minimum": 0.0
}
}
},
"additionalProperties": false
},
"GitMetricsConfig": {
"type": "object",
@@ -2832,7 +2861,8 @@
"default": true,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"GitStateConfig": {
"type": "object",
@@ -2877,7 +2907,8 @@
"default": false,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"GitStatusConfig": {
"type": "object",
@@ -2948,7 +2979,8 @@
"null"
]
}
}
},
"additionalProperties": false
},
"GoConfig": {
"type": "object",
@@ -3006,7 +3038,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"HaskellConfig": {
"type": "object",
@@ -3059,7 +3092,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"HelmConfig": {
"type": "object",
@@ -3108,7 +3142,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"HgBranchConfig": {
"type": "object",
@@ -3138,7 +3173,8 @@
"default": true,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"HostnameConfig": {
"type": "object",
@@ -3167,7 +3203,8 @@
"default": false,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"JavaConfig": {
"type": "object",
@@ -3228,7 +3265,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"JobsConfig": {
"type": "object",
@@ -3264,7 +3302,8 @@
"default": false,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"JuliaConfig": {
"type": "object",
@@ -3315,7 +3354,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"KotlinConfig": {
"type": "object",
@@ -3368,7 +3408,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"KubernetesConfig": {
"type": "object",
@@ -3424,7 +3465,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"LineBreakConfig": {
"type": "object",
@@ -3433,7 +3475,8 @@
"default": false,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"LocalipConfig": {
"type": "object",
@@ -3454,7 +3497,8 @@
"default": true,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"LuaConfig": {
"type": "object",
@@ -3510,7 +3554,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"MemoryConfig": {
"type": "object",
@@ -3536,7 +3581,8 @@
"default": true,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"NimConfig": {
"type": "object",
@@ -3588,7 +3634,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"NixShellConfig": {
"type": "object",
@@ -3617,7 +3664,8 @@
"default": false,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"NodejsConfig": {
"type": "object",
@@ -3680,7 +3728,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"OCamlConfig": {
"type": "object",
@@ -3749,7 +3798,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"OspConfig": {
"type": "object",
@@ -3770,7 +3820,8 @@
"default": false,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"PackageConfig": {
"type": "object",
@@ -3799,7 +3850,8 @@
"default": "v${raw}",
"type": "string"
}
}
},
"additionalProperties": false
},
"PerlConfig": {
"type": "object",
@@ -3857,7 +3909,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"PhpConfig": {
"type": "object",
@@ -3908,7 +3961,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"PulumiConfig": {
"type": "object",
@@ -3937,7 +3991,8 @@
"default": true,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"PureScriptConfig": {
"type": "object",
@@ -3987,7 +4042,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"PythonConfig": {
"type": "object",
@@ -4063,7 +4119,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"Either_for_String_and_Array_of_String": {
"anyOf": [
@@ -4130,7 +4187,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"RedConfig": {
"type": "object",
@@ -4179,7 +4237,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"RLangConfig": {
"type": "object",
@@ -4235,7 +4294,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"RubyConfig": {
"type": "object",
@@ -4296,7 +4356,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"RustConfig": {
"type": "object",
@@ -4346,7 +4407,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"ScalaConfig": {
"type": "object",
@@ -4401,7 +4463,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"ShellConfig": {
"type": "object",
@@ -4462,7 +4525,8 @@
"default": true,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"ShLvlConfig": {
"type": "object",
@@ -4492,7 +4556,8 @@
"default": true,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"SingularityConfig": {
"type": "object",
@@ -4513,7 +4578,8 @@
"default": false,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"SpackConfig": {
"type": "object",
@@ -4540,7 +4606,8 @@
"default": false,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"StatusConfig": {
"type": "object",
@@ -4607,7 +4674,8 @@
"default": true,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"SudoConfig": {
"type": "object",
@@ -4632,7 +4700,8 @@
"default": true,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"SwiftConfig": {
"type": "object",
@@ -4682,7 +4751,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"TerraformConfig": {
"type": "object",
@@ -4734,7 +4804,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"TimeConfig": {
"type": "object",
@@ -4769,7 +4840,8 @@
"default": "-",
"type": "string"
}
}
},
"additionalProperties": false
},
"UsernameConfig": {
"type": "object",
@@ -4794,7 +4866,8 @@
"default": false,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"VagrantConfig": {
"type": "object",
@@ -4842,7 +4915,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"VcshConfig": {
"type": "object",
@@ -4863,7 +4937,8 @@
"default": false,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"VConfig": {
"type": "object",
@@ -4915,7 +4990,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"ZigConfig": {
"type": "object",
@@ -4963,7 +5039,8 @@
"type": "string"
}
}
}
},
"additionalProperties": false
},
"CustomConfig": {
"type": "object",
@@ -5045,7 +5122,8 @@
"default": false,
"type": "boolean"
}
}
},
"additionalProperties": false
},
"Either_for_Boolean_and_String": {
"anyOf": [