Skip to content

Commit c8a2f12

Browse files
committed
Increase length limit for metadata values from 100 to 300 characters
1 parent e6ade1d commit c8a2f12

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/schema/sdkSchemas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const eventMetadataSchema = new ObjectType({
1313
format: 'identifier',
1414
}),
1515
additionalProperties: new StringType({
16-
maxLength: 100,
16+
maxLength: 300,
1717
}),
1818
});
1919

test/schemas/sdkSchemas.test.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ describe('The event metadata schema', () => {
55
[{}],
66
[{
77
foo: 'bar',
8-
_keyWith20Characters: 'stringValueWith100Characters______________'
9-
+ '__________________________________________________________',
8+
_keyWith20Characters: 'x'.repeat(300),
109
thirdKey: 'someValue',
1110
fourthKey: 'someValue',
1211
fifthKey: 'someValue',
@@ -34,10 +33,9 @@ describe('The event metadata schema', () => {
3433
],
3534
[
3635
{
37-
longValue: 'stringValueWith101Characters____________________'
38-
+ '_____________________________________________________',
36+
longValue: 'x'.repeat(301),
3937
},
40-
'Expected at most 100 characters at path \'/longValue\', actual 101.',
38+
'Expected at most 300 characters at path \'/longValue\', actual 301.',
4139
],
4240
[
4341
{

0 commit comments

Comments
 (0)