build(deps-dev): apply updates
[e-mobility-charging-stations-simulator.git] / src / charging-station / ocpp / 2.0 / OCPP20ServiceUtils.ts
CommitLineData
edd13439 1// Partial Copyright Jerome Benoit. 2021-2023. All Rights Reserved.
953d6b02 2
66a7748d 3import type { JSONSchemaType } from 'ajv'
130783a7 4
66a7748d
JB
5import { type JsonType, OCPPVersion } from '../../../types/index.js'
6import { OCPPServiceUtils } from '../OCPPServiceUtils.js'
953d6b02 7
130783a7 8export class OCPP20ServiceUtils extends OCPPServiceUtils {
1b271a54
JB
9 public static parseJsonSchemaFile<T extends JsonType>(
10 relativePath: string,
11 moduleName?: string,
66a7748d 12 methodName?: string
1b271a54 13 ): JSONSchemaType<T> {
7164966d 14 return super.parseJsonSchemaFile<T>(
51022aa0 15 relativePath,
1b271a54
JB
16 OCPPVersion.VERSION_20,
17 moduleName,
66a7748d
JB
18 methodName
19 )
130783a7
JB
20 }
21}