Skip to content

Commit b4dec4e

Browse files
dwibudutlorenzodonini
authored andcommitted
fix connectorId validation on ext-trigger-message req base on schema
1 parent b0f8b2c commit b4dec4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocpp1.6/extendedtriggermessage/extended_trigger_message.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func isValidExtendedTriggerMessageStatus(fl validator.FieldLevel) bool {
7272
// The field definition of the LogStatusNotification request payload sent by a Charging Station to the CSMS.
7373
type ExtendedTriggerMessageRequest struct {
7474
RequestedMessage ExtendedTriggerMessageType `json:"requestedMessage" validate:"required,extendedTriggerMessageType"`
75-
ConnectorId *int `json:"connectorId" validate:"gt=0,omitempty"`
75+
ConnectorId *int `json:"connectorId,omitempty" validate:"omitempty,gte=0"`
7676
}
7777

7878
// This field definition of the LogStatusNotification response payload, sent by the CSMS to the Charging Station in response to a ExtendedTriggerMessageRequest.

0 commit comments

Comments
 (0)