Skip to content

Commit

Permalink
fix connectorId validation on ext-trigger-message req base on schema
Browse files Browse the repository at this point in the history
  • Loading branch information
dwibudut authored and lorenzodonini committed Oct 20, 2024
1 parent b0f8b2c commit b4dec4e
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,omitempty" 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 b4dec4e

Please sign in to comment.