You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As doc.Validate accepts validation options (signature: func (doc *T) Validate(ctx context.Context, opts ...ValidationOption) error) I would like to modify the NewRouter function (or add a new one named NewRouterWithValidationOptions), allowing to provide validation option:
In routers/legacy/route, we have the function:
Which calls:
As
doc.Validate
accepts validation options (signature:func (doc *T) Validate(ctx context.Context, opts ...ValidationOption) error
) I would like to modify theNewRouter
function (or add a new one namedNewRouterWithValidationOptions)
, allowing to provide validation option:If this is fine for you, I can create a pull request for it.
The text was updated successfully, but these errors were encountered: