Casts and validates the given object against this model's schema, returning the casted-and-validated copy of `obj`, passing the given `context` to custom validators.
()
| 655 | |
| 656 | /** Casts and validates the given object against this model's schema, returning the casted-and-validated copy of `obj`, passing the given `context` to custom validators. */ |
| 657 | validate(): Promise<TRawDocType>; |
| 658 | validate(obj: any): Promise<TRawDocType>; |
| 659 | validate(obj: any, pathsOrOptions: PathsToValidate): Promise<TRawDocType>; |
| 660 | validate(obj: any, pathsOrOptions: { pathsToSkip?: pathsToSkip }): Promise<TRawDocType>; |
no outgoing calls