Skip to content

Commit

Permalink
Update error message for any type
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredoconnell committed Dec 10, 2024
1 parent 2cd25a4 commit 2ef2131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schema/any.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (a *AnySchema) ValidateCompatibility(typeOrData any) error {
default:
// It's not an any schema or a type compatible with an any schema, so error
return &ConstraintError{
Message: fmt.Sprintf("unsupported schema type for 'any' type: %T", typeOrData),
Message: fmt.Sprintf("schema type `%T` cannot be used as an input for an 'any' type", typeOrData),
}
}
return nil
Expand Down

0 comments on commit 2ef2131

Please sign in to comment.