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
Hi there, would love to have all my request params/body/etc. I already define them in ValidatePathParam and ValidateBody, so I know that they will be the correct types.
Ideally, this would happen automatically and ValidatePathParam would just pass the correct types into ctx's request object.
exportclassApproverController{
@Get()
@ValidatePathParam('versionId',{type: 'string',format: 'uuid'})asyncgetDocumentVersionApprovers(ctx: Context){const{request: {params: { versionId },// <----- This is an "any", and it should be a string},
user,}=ctx;}}
The text was updated successfully, but these errors were encountered:
Hi there, would love to have all my request params/body/etc. I already define them in ValidatePathParam and ValidateBody, so I know that they will be the correct types.
Ideally, this would happen automatically and
ValidatePathParam
would just pass the correct types intoctx
's request object.The text was updated successfully, but these errors were encountered: