diff --git a/src/json-type/type/classes/AbstractType.ts b/src/json-type/type/classes/AbstractType.ts index 4f684197c0..12fdc3d5c8 100644 --- a/src/json-type/type/classes/AbstractType.ts +++ b/src/json-type/type/classes/AbstractType.ts @@ -55,7 +55,7 @@ export abstract class AbstractType implements BaseType< protected abstract schema: S; public getSystem(): TypeSystem { - const system = type.system; + const system = this.system; if (!system) throw new Error('NO_SYSTEM'); return system; }