Skip to content

Commit

Permalink
fix ext trigger message request connector validation
Browse files Browse the repository at this point in the history
  • Loading branch information
dwibudut committed Oct 9, 2024
1 parent c17a7da commit a54ad88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocpp1.6/extendedtriggermessage/extended_trigger_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func isValidExtendedTriggerMessageStatus(fl validator.FieldLevel) bool {
// The field definition of the LogStatusNotification request payload sent by a Charging Station to the CSMS.
type ExtendedTriggerMessageRequest struct {
RequestedMessage ExtendedTriggerMessageType `json:"requestedMessage" validate:"required,extendedTriggerMessageType"`
ConnectorId *int `json:"connectorId" validate:"gt=0,omitempty"`
ConnectorId *int `json:"connectorId" validate:"omitempty,gte=0"`
}

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

0 comments on commit a54ad88

Please sign in to comment.