Skip to content

Commit 6fa752c

Browse files
author
andy.patterson
committed
fix: don't disallow additional properties by default
1 parent d982f2e commit 6fa752c

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ export default class Validator<T> {
6161
return new Validator<ObjectValidator<O, OptionalKeys>>({
6262
type: 'object',
6363
properties,
64-
additionalProperties: false,
6564
required,
6665
});
6766
}

tests/integration/api.test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ test('Can generate a valid json schema', () => {
2626
thing3: { type: 'boolean' },
2727
thing4: { type: 'string' as 'string' },
2828
},
29-
additionalProperties: false,
3029
required: ['thing', 'thing2', 'thing3', 'thing4'],
3130
};
3231

0 commit comments

Comments
 (0)