Closed icopp closed 2 years ago
Accessing properties in the validation codes is done via data.${property.name}
, see https://github.com/deepkit/deepkit-framework/blob/master/packages/type/src/jit-validation.ts#L292. In the serialiser this happens via _instance[${JSON.stringify(property.name)}]
, see https://github.com/deepkit/deepkit-framework/blob/master/packages/type/src/jit.ts#L492.
The first needs to be adjusted accordingly to support numeric property names.
Closing since inactivity and old unsupported version. This should be supported in the newest version though
A simple test case for the problem:
This results in an error:
The transformation without the validation doesn't error:
However, invoking
validate
at any point on that object then results in the same error.