We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
validateMetaInfo 是基于 https://github.com/node-modules/parameter 的实现,后续使用 paramSchema(OpenAPI)规范替代,便于读取详细类型信息
The text was updated successfully, but these errors were encountered:
这个功能什么时候上呀?
Sorry, something went wrong.
对于手写来说跟 validateMetaInfo 能力差不多,paramSchema 会考虑配合TS解析入参类型来做 目前支持的是函数返回值解析,入参解析还要等等
@zhang740 刚想问 validateMetaInfo 能不能暴露出来支持自定义校验规则,方便 class-validator 之类库的使用 😁,话说啥时候可以支持呢
@vagusX 你这个需求好办 可以参照 param.ts 写个中间件 RouteType 上有获取的类型信息,你可以获取到类型然后实例化,然后再把参数对应赋值再validate,你可以试试,等有空给你写个demo
No branches or pull requests
validateMetaInfo 是基于 https://github.com/node-modules/parameter 的实现,后续使用 paramSchema(OpenAPI)规范替代,便于读取详细类型信息
The text was updated successfully, but these errors were encountered: