Commit | Line | Data |
---|---|---|
a19b897d | 1 | // Partial Copyright Jerome Benoit. 2021-2024. All Rights Reserved. |
953d6b02 | 2 | |
66a7748d | 3 | import type { JSONSchemaType } from 'ajv' |
130783a7 | 4 | |
66a7748d JB |
5 | import { type JsonType, OCPPVersion } from '../../../types/index.js' |
6 | import { OCPPServiceUtils } from '../OCPPServiceUtils.js' | |
953d6b02 | 7 | |
130783a7 | 8 | export class OCPP20ServiceUtils extends OCPPServiceUtils { |
6375d3cd | 9 | public static override parseJsonSchemaFile<T extends JsonType>( |
1b271a54 JB |
10 | relativePath: string, |
11 | moduleName?: string, | |
66a7748d | 12 | methodName?: string |
1b271a54 | 13 | ): JSONSchemaType<T> { |
7164966d | 14 | return super.parseJsonSchemaFile<T>( |
51022aa0 | 15 | relativePath, |
1feac591 | 16 | OCPPVersion.VERSION_201, |
1b271a54 | 17 | moduleName, |
66a7748d JB |
18 | methodName |
19 | ) | |
130783a7 JB |
20 | } |
21 | } |