v5.4.0 release notes
- Added a
context.Contextfield to thevalidation.Optionsandvalidation.Contextstructures. If not provided, it defaults tocontext.Background(). - The built-in validation middleware now uses the request context in the validation options.
- The DB instance used in the validation options by the built-in validation middleware was already injected with the request context. You don't need to update your custom validators.
- You may want to update places where you are using manual validation. However, those will continue to work exactly like they used to if you don't change anything.