Skip to content

Commit

Permalink
Increase length limit for metadata values from 100 to 300 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospassos committed Apr 17, 2020
1 parent e6ade1d commit c8a2f12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/schema/sdkSchemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const eventMetadataSchema = new ObjectType({
format: 'identifier',
}),
additionalProperties: new StringType({
maxLength: 100,
maxLength: 300,
}),
});

Expand Down
8 changes: 3 additions & 5 deletions test/schemas/sdkSchemas.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ describe('The event metadata schema', () => {
[{}],
[{
foo: 'bar',
_keyWith20Characters: 'stringValueWith100Characters______________'
+ '__________________________________________________________',
_keyWith20Characters: 'x'.repeat(300),
thirdKey: 'someValue',
fourthKey: 'someValue',
fifthKey: 'someValue',
Expand Down Expand Up @@ -34,10 +33,9 @@ describe('The event metadata schema', () => {
],
[
{
longValue: 'stringValueWith101Characters____________________'
+ '_____________________________________________________',
longValue: 'x'.repeat(301),
},
'Expected at most 100 characters at path \'/longValue\', actual 101.',
'Expected at most 300 characters at path \'/longValue\', actual 301.',
],
[
{
Expand Down

0 comments on commit c8a2f12

Please sign in to comment.