TypedParam
should use validator configured in tsconfig just like TypedQuery
/ TypedBody
#914
Labels
good first issue
Good for newcomers
help wanted
Extra attention is needed
question
Further information is requested
Summary
TypedParam
error to follow the same interface asTypedQuery
andTypedBody
.TypedParam
uses assert regardless of value in tsconfigtsconfig:
Code:
TypedParam error (bug):
TypedParam error (expected):
This change would unify their interfaces and make it easier to consume apis created with nestia.
Related code:
TypedParam: https://github.com/samchon/nestia/blob/master/packages/core/src/decorators/TypedParam.ts#L50
TypedQuery: https://github.com/samchon/nestia/blob/master/packages/core/src/decorators/TypedQuery.ts#L49
TypedBody: https://github.com/samchon/nestia/blob/master/packages/core/src/decorators/TypedBody.ts#L30
The text was updated successfully, but these errors were encountered: