- if (this.jsonSchemas.has(commandName)) {
- return this.validateResponsePayload(
- chargingStation,
- commandName,
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
- this.jsonSchemas.get(commandName)!,
- payload
- )
+ if (this.jsonSchemasValidateFunction.has(commandName)) {
+ return this.validateResponsePayload(chargingStation, commandName, payload)