We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8807bf8 commit d14875bCopy full SHA for d14875b
src/codegen/validator/__tests__/codegen.spec.ts
@@ -1280,7 +1280,7 @@ describe('custom validators', () => {
1280
test('can specify multiple validators', () => {
1281
const system = new TypeSystem();
1282
const type = system.t.str
1283
- .validator((value) => value === 'a' || value === 'b', 'is-ab')
+ .validator((value) => value !== 'a' && value !== 'b', 'is-ab')
1284
.validator((value) => value !== 'a', 'is-a');
1285
const validator = ValidatorCodegen.get({type, errors: 'object'});
1286
const res1 = validator('a');
0 commit comments