Skip to content

Commit

Permalink
change signature of DifferentFrom() so it can be used to validate a…
Browse files Browse the repository at this point in the history
…ny type
  • Loading branch information
chrismarget-j committed Aug 1, 2023
1 parent d7956d5 commit 8a8c2e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apstra/apstra_validator/different_from.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (o DifferentFromValidator) Validate(ctx context.Context, req DifferentFromV
//
// Relative path.Expression will be resolved using the attribute being
// validated.
func DifferentFrom(expressions ...path.Expression) validator.Int64 {
func DifferentFrom(expressions ...path.Expression) *DifferentFromValidator {
return &DifferentFromValidator{
PathExpressions: expressions,
}
Expand Down

0 comments on commit 8a8c2e3

Please sign in to comment.