Skip to content

Commit fa3fa32

Browse files
BenoitZugmeyerBeltranBulbarellaDD
authored andcommitted
✅ improve format validation error output (#3834)
1 parent f8d0f4a commit fa3fa32

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/rum-core/test/formatValidation.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ function validateRumFormat(rumEvent: Context) {
7676
if (error.keyword === 'enum') {
7777
message += ` ${formatAllowedValues(error.params.allowedValues)}`
7878
}
79+
if (error.keyword === 'additionalProperties') {
80+
message += ` ${formatAllowedValues([error.params.additionalProperty])}`
81+
}
7982
return ` event${error.instancePath || ''} ${message}`
8083
})
8184
.join('\n')

0 commit comments

Comments
 (0)