chore: fix regression on arguments not being found
This commit is contained in:
parent
6e7f3b0823
commit
b032ae5e5e
|
|
@ -689,8 +689,13 @@ It uses the same validation logic as the executor, including mangling argument
|
||||||
values (e.g., datetime formatting, checkbox title-to-value conversion).
|
values (e.g., datetime formatting, checkbox title-to-value conversion).
|
||||||
*/
|
*/
|
||||||
func (api *oliveTinAPI) argumentNotFoundForValidation(msg *apiv1.ValidateArgumentTypeRequest) bool {
|
func (api *oliveTinAPI) argumentNotFoundForValidation(msg *apiv1.ValidateArgumentTypeRequest) bool {
|
||||||
|
if msg.BindingId == "" || msg.ArgumentName == "" {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
arg, _ := api.findArgumentForValidation(msg.BindingId, msg.ArgumentName)
|
arg, _ := api.findArgumentForValidation(msg.BindingId, msg.ArgumentName)
|
||||||
return arg == nil && (msg.BindingId != "" || msg.ArgumentName != "")
|
|
||||||
|
return arg == nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (api *oliveTinAPI) ValidateArgumentType(ctx ctx.Context, req *connect.Request[apiv1.ValidateArgumentTypeRequest]) (*connect.Response[apiv1.ValidateArgumentTypeResponse], error) {
|
func (api *oliveTinAPI) ValidateArgumentType(ctx ctx.Context, req *connect.Request[apiv1.ValidateArgumentTypeRequest]) (*connect.Response[apiv1.ValidateArgumentTypeResponse], error) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue