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
add @HandleModelErrors() decorator that allows decorated routes to process requests with invalid input data (request body, query param, or path param); inject original source value for each failing provider
add @RequestModelErrors() injectable decorator that injects map of errors collected for any injected param
throw an error from the decorators if @RequestModelErrors is used without @HandleModelErrors or vice-versa
The text was updated successfully, but these errors were encountered:
metadata.model.builder
to collect all validation errors as a data structure instead of throw an errorModelBuilder
APIs to include overrides:throwOnValidationError: false
in MemberBuilderOptions returns Error instance or model typeconstructModel<TModel, TOptions extends NoThrowOnValidationErrorOptions>(type: Constructor<TModel>, source: any, options: TOptions): Error | TModel
@HandleModelErrors()
decorator that allows decorated routes to process requests with invalid input data (request body, query param, or path param); inject original source value for each failing provider@RequestModelErrors()
injectable decorator that injects map of errors collected for any injected param@RequestModelErrors
is used without@HandleModelErrors
or vice-versaThe text was updated successfully, but these errors were encountered: