| amperageLimitationUnit | A/cA/dA/mA | A | string | charging stations amperage limit unit |
| enableStatistics | true/false | false | boolean | enable charging stations statistics |
| mustAuthorizeAtRemoteStart | true/false | true | boolean | always send authorize at remote start transaction when AuthorizeRemoteTxRequests is enabled |
-| payloadSchemaValidation | true/false | true | boolean | validate OCPP commands PDU against [OCA](https://www.openchargealliance.org/) JSON schemas |
+| payloadSchemaValidation | true/false | true if ocppStrictCompliance is true/false if ocppStrictCompliance is false | boolean | validate OCPP commands PDU against [OCA](https://www.openchargealliance.org/) JSON schemas |
| beginEndMeterValues | true/false | false | boolean | enable Transaction.{Begin,End} MeterValues |
| outOfOrderEndMeterValues | true/false | false | boolean | send Transaction.End MeterValues out of order. Need to relax OCPP specifications strict compliance ('ocppStrictCompliance' parameter) |
| meteringPerTransaction | true/false | true | boolean | enable metering history on a per transaction basis |
}
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;
}