-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
Description
Add context.Context support to validation functions for i18n and future extensibility.
Implementation Details
Generated functions:
// New context-aware version
func ValidateUserContext(ctx context.Context, t *User) error
// Existing function delegates to context version
func ValidateUser(t *User) error {
return ValidateUserContext(context.Background(), t)
}Primary use case: Pass language information for i18n. Maintains backward compatibility.
Success Criteria
- Context versions generated for all validators
- Existing functions continue to work
- Context properly propagated through validation
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed