-
Notifications
You must be signed in to change notification settings - Fork 534
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
[health_check] validate form item "checks.active.port" #2019
Comments
cc @Baoyuantop to have a check |
版本: |
Hi @uriddle, In order to better help you solve the problem, can you provide me how to Reproduce ? for example :
|
Thank you @uriddle . When create or update Upstream, the port option in Health Check is optional. Dashboard will provide a default value 80, but when the user changes it to empty, dashboard will send The possible solution is to not pass the what do you think about it ? @uriddle @juzhiyuan |
Maybe we can deal with “Port” just like “Host” option . |
Hi @Baoyuantop, all schema in Apache APISIX is in here[1]. I just checked the BTW, the Web should omit all [1] https://github.com/apache/apisix/blob/master/apisix/schema_def.lua#L139-L142 |
I tested the api, it returns 200 when I don't pass the port field, so it's a good idea to omit all |
ok, you may need to omit all null values from a nested object value |
I found that in the entire web if there is an optional Therefore, I think that all attributes in an object with null values in the request body should be filtered out by What do y'all think? |
yes, the Request Interceptor is also a good place to omit all |
Issue description
upstream 节点健康检查在不配置 active.port 的时候,校验出错
Expected behavior
官网介绍:
active.port: 用于发现 upstream 节点健康可用的自定义主机端口(可选),配置此项会覆盖 upstream 节点中的端口。
The text was updated successfully, but these errors were encountered: