Skip to content
New issue

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

泛化调用的IDL无法解析官方推荐的字段校验 #1391

Open
stevenhoukai opened this issue Jun 13, 2024 · 4 comments
Open

泛化调用的IDL无法解析官方推荐的字段校验 #1391

stevenhoukai opened this issue Jun 13, 2024 · 4 comments

Comments

@stevenhoukai
Copy link

image
如上图

如果我一个原始PB里面使用了官方推荐的cloudwego/protoc-gen-validator, 要如何进行泛化调用了?

@AsterDY
Copy link
Contributor

AsterDY commented Jun 13, 2024

目前泛化调用不支持任何插件。不过如果 server 端是正常RPC服务,validator在server端应该能生效

@stevenhoukai
Copy link
Author

这个功能能实现吗?
三个问题哈
1、因为我这边需要在proto做参数校验,所以肯定是要引入插件的,目前插件能生效, 但是会有下面的问题
image

2、如果这个功能不能实现,那是不是kitexcall这个工具也无法使用,那有无替代的接口测试方案了?

3、因为目前是需要做的功能是想通过hertz实现一个泛化调用来做Api-gateway,如果引入了插件这个功能是不是就没法做了?

@stevenhoukai
Copy link
Author

如果不引入插件,有无推荐的参数校验方案哈?

@YangruiEmma
Copy link
Member

你使用的什么泛化调用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants