feat: considering additionalProperties missing default to false #197
Annotations
2 errors
|
test
Process completed with exit code 1.
|
|
AssertionError: Expected values to be strictly deep-equal:
tests/integration/router-validation-additional-properties.test.ts#L101
:
{
+ 'body.intersection.0': {
+ message: 'Additional properties are not allowed. Found: bar'
- body: {
- message: 'Additional properties are not allowed. Found: 7fdbfec4-7641-47ba-8e35-cfae86569f9a',
- value: {
- '7fdbfec4-7641-47ba-8e35-cfae86569f9a': 'random',
- anyOnly: 'any-value',
- array: [
- 'bar'
- ],
- boolean: false,
- class: {},
- intersection: {
- bar: 'foo',
- foo: 'bar'
- },
- mappedType: {
- foo: 1
- },
- nullable: null,
- number: 1,
- numberEnum: 4,
- numberWithMinAndMax: 5,
- objectWithProps: {
- string: 'my-string'
- },
- record: {
- foo: '1'
- },
- string: 'my-string',
- stringEnum: 'foo',
- stringWithFormat: '2026-01-26T18:38:36.587Z',
- stringWithPattern: 'FOO',
- tuple: [
- 'foo',
- 1
- ],
- union: {
- foo: 'bar'
- },
- unionAdditionalProps: {
- bar: '2',
- foo: '1'
- }
- }
}
}
at /home/runner/work/typoa/typoa/tests/integration/router-validation-additional-properties.test.ts:101:12
at processTicksAndRejections (native:7:39)
|