| 1 | // Partial Copyright Jerome Benoit. 2021-2024. All Rights Reserved. |
| 2 | |
| 3 | import type { JSONSchemaType } from 'ajv' |
| 4 | |
| 5 | import { type JsonType, OCPPVersion } from '../../../types/index.js' |
| 6 | import { OCPPServiceUtils } from '../OCPPServiceUtils.js' |
| 7 | |
| 8 | export class OCPP20ServiceUtils extends OCPPServiceUtils { |
| 9 | public static override parseJsonSchemaFile<T extends JsonType>( |
| 10 | relativePath: string, |
| 11 | moduleName?: string, |
| 12 | methodName?: string |
| 13 | ): JSONSchemaType<T> { |
| 14 | return super.parseJsonSchemaFile<T>( |
| 15 | relativePath, |
| 16 | OCPPVersion.VERSION_201, |
| 17 | moduleName, |
| 18 | methodName |
| 19 | ) |
| 20 | } |
| 21 | } |