mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 02:17:05 +00:00
add x/errors.Validation
This commit is contained in:
@@ -23,6 +23,7 @@ Developers are not forced to upgrade if they don't really need it. Upgrade whene
|
||||
|
||||
Changes apply to `main` branch.
|
||||
|
||||
- Add `x/errors.Validation` package-level function to add one or more validations for the request payload before a service call of the below methods.
|
||||
- Add `x/errors.Handler`, `CreateHandler`, `NoContentHandler`, `NoContenetOrNotModifiedHandler` and `ListHandler` ready-to-use handlers for service method calls to Iris Handler.
|
||||
- Add `x/errors.List` package-level function to support `ListObjects(ctx context.Context, opts pagination.ListOptions, f Filter) ([]Object, int64, error)` type of service calls.
|
||||
- Simplify how validation errors on `/x/errors` package works. A new `x/errors/validation` sub-package added to make your life easier (using the powerful Generics feature).
|
||||
|
||||
Reference in New Issue
Block a user