X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcharging-station%2FChargingStation.ts;h=1494cc56365d983ec779c50dbd858af18cad739f;hb=0282b7c0ea2651c7367cd21bc96e8ef3637076c7;hp=022f11bbbc23a6679f0137a8c531d93c2a7ddec9;hpb=b03c86f2f90f1390805570e296d16af071d4b2c7;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index 022f11bb..1494cc56 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -250,23 +250,6 @@ export class ChargingStation { return this.stationInfo.mustAuthorizeAtRemoteStart ?? true; } - public getPayloadSchemaValidation(): boolean { - if ( - this.getOcppStrictCompliance() === true && - (isNullOrUndefined(this.stationInfo.payloadSchemaValidation) || - this.stationInfo.payloadSchemaValidation === false) - ) { - return true; - } else if ( - this.getOcppStrictCompliance() === false && - (isNullOrUndefined(this.stationInfo.payloadSchemaValidation) || - this.stationInfo.payloadSchemaValidation === true) - ) { - return false; - } - return this.stationInfo.payloadSchemaValidation ?? true; - } - public getNumberOfPhases(stationInfo?: ChargingStationInfo): number | undefined { const localStationInfo: ChargingStationInfo = stationInfo ?? this.stationInfo; switch (this.getCurrentOutType(stationInfo)) { @@ -365,7 +348,7 @@ export class ChargingStation { } public getOcppStrictCompliance(): boolean { - return this.stationInfo?.ocppStrictCompliance ?? false; + return this.stationInfo?.ocppStrictCompliance ?? true; } public getVoltageOut(stationInfo?: ChargingStationInfo): number | undefined {