Skip to content

Commit 545a57b

Browse files
committed
update mappings
1 parent a0da651 commit 545a57b

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

packages/kbn-telemetry-tools/src/tools/tasks/check_matching_schemas_task.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function checkMatchingSchemasTask({ roots }: TaskContext, throwOnDiff: bo
3131

3232
if (root.parsedCollections) {
3333
const differences = checkMatchingMapping(root.parsedCollections, esMapping);
34-
root.esMappingDiffs = Object.keys(differences?.properties);
34+
root.esMappingDiffs = Object.keys(differences);
3535
if (root.esMappingDiffs.length && throwOnDiff) {
3636
throw Error(
3737
`The following changes must be persisted in ${fullPath} file. Use '--fix' to update.\n${JSON.stringify(

src/plugins/telemetry/schema/oss_plugins.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,19 @@
4848
}
4949
}
5050
},
51+
"csp": {
52+
"properties": {
53+
"strict": {
54+
"type": "boolean"
55+
},
56+
"warnLegacyBrowsers": {
57+
"type": "boolean"
58+
},
59+
"rulesChangedFromDefault": {
60+
"type": "boolean"
61+
}
62+
}
63+
},
5164
"telemetry": {
5265
"properties": {
5366
"opt_in_status": {

0 commit comments

Comments
 (0)