API Reference
Rockets Core API
nestjs-crud
functions
CrudValidate

Function: CrudValidate()

CrudValidate(options?): CustomDecorator<string>

Crud validate options decorator.

Set the fallback ValidationPipe options for all method parameters called with the CrudBody decorator.

If this decorator is used on a controller, it will use the given options to every controller method's Crud param that does NOT have validations explicitly set.

If this decorator is used on a method, it will use the given options for every Crud parameter on the method that does NOT have validations explicitly set.

Parameters

ParameterTypeDescription
options?false | ValidationPipeOptionscrud validation options

Returns

CustomDecorator<string>

Defined in

packages/nestjs-crud/src/decorators/routes/crud-validate.decorator.ts:19 (opens in a new tab)