Skip to content

Commit

Permalink
Fix error validation
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Oct 9, 2023
1 parent 92bf8bf commit 5d4aaae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocppj/ocppj.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ const (
func IsErrorCodeValid(fl validator.FieldLevel) bool {
code := ocpp.ErrorCode(fl.Field().String())
switch code {
case NotImplemented, NotSupported, InternalError, MessageTypeNotSupported, ProtocolError, SecurityError, FormationViolation, PropertyConstraintViolation, OccurrenceConstraintViolation, TypeConstraintViolation, GenericError:
case NotImplemented, NotSupported, InternalError, MessageTypeNotSupported, ProtocolError, SecurityError, FormatViolationV16, FormatViolationV2, PropertyConstraintViolation, OccurrenceConstraintViolation, TypeConstraintViolation, GenericError:
return true
}
return false
Expand Down

0 comments on commit 5d4aaae

Please sign in to comment.