Skip to content

Commit b43d29d

Browse files
committed
Update all dependencies
1 parent 290ef11 commit b43d29d

8 files changed

Lines changed: 2773 additions & 4469 deletions

File tree

__tests__/defaultConverters.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class User {
141141

142142
const metadata = _get(
143143
validator.getFromContainer(validator.MetadataStorage),
144-
'validationMetadatas'
144+
'validationMetadatas',
145145
)
146146
const schemas = validationMetadatasToSchemas(metadata)
147147

@@ -161,7 +161,6 @@ describe('defaultConverters', () => {
161161
anyOf: [
162162
{ type: 'string', enum: [''] },
163163
{
164-
nullable: true,
165164
not: {
166165
anyOf: [
167166
{ type: 'string' },

__tests__/index.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ describe('classValidatorConverter', () => {
7070
expect(
7171
validationMetadatasToSchemas({
7272
classValidatorMetadataStorage: emptyStorage,
73-
})
73+
}),
7474
).toEqual({})
7575
})
7676

@@ -136,7 +136,6 @@ describe('classValidatorConverter', () => {
136136
{ type: 'object' },
137137
],
138138
},
139-
nullable: true,
140139
},
141140
],
142141
},
@@ -201,7 +200,6 @@ describe('classValidatorConverter', () => {
201200
{ type: 'object' },
202201
],
203202
},
204-
nullable: true,
205203
},
206204
],
207205
},
@@ -265,7 +263,6 @@ describe('classValidatorConverter', () => {
265263
{ type: 'object' },
266264
],
267265
},
268-
nullable: true,
269266
},
270267
],
271268
},

__tests__/options.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ describe('options', () => {
7373
type: 'string',
7474
},
7575
[MAX_LENGTH]: (meta) => ({
76-
exclusiveMaximum: true,
77-
maxLength: meta.constraints[0] + 1,
76+
exclusiveMaximum: meta.constraints[0] + 1,
7877
type: 'string',
7978
}),
8079
},
@@ -88,7 +87,7 @@ describe('options', () => {
8887
not: { type: 'null' },
8988
},
9089
tags: {
91-
items: { exclusiveMaximum: true, type: 'string', maxLength: 21 },
90+
items: { exclusiveMaximum: 21, type: 'string' },
9291
type: 'array',
9392
},
9493
})

0 commit comments

Comments
 (0)