- const filePath = path.resolve(path.dirname(fileURLToPath(import.meta.url)), relativePath);
- try {
- return JSON.parse(fs.readFileSync(filePath, 'utf8')) as JSONSchemaType<T>;
- } catch (error) {
- FileUtils.handleFileException(
- OCPPServiceUtils.logPrefix(OCPPVersion.VERSION_16),
- FileType.JsonSchema,
- filePath,
- error as NodeJS.ErrnoException,
- { throwError: false }
- );
- }
+ return super.parseJsonSchemaFile<T>(
+ path.resolve(path.dirname(fileURLToPath(import.meta.url)), relativePath),
+ OCPPVersion.VERSION_16
+ );