Support verifying that a leaf of type empty is present or not in ActionRequest.Input
sebastien-guay opened this issue · 6 comments
sebastien-guay commented
Support verifying that a leaf
of type empty
is present or not in ActionRequest.Input
.
Currently, calling req.Input.GetValue(...)
will always return nil
whatever the leaf is there or not.
Having something like req.Input.HasLeaf(name)
would be nice.
dhubler commented
I created branch issue-21
with fix to checkout. GetValue()
should return something now. GetValue() == val.NotEmpty
in fact
dhubler commented
I'll merge this in few days if i do not hear from you otherwise that this doesn't work for you
sebastien-guay commented
I'll merge this in few days if i do not hear from you otherwise that this doesn't work for you
I don't see the issue-21
branch but returning val.NotEmpty looks good.
sebastien-guay commented
Hi @dhubler!
Is this issue has been resolved?
dhubler commented
yes, but i forgot to merge. should be in master now
…On Tue, Feb 14, 2023 at 9:52 AM sguay ***@***.***> wrote:
Hi @dhubler <https://github.com/dhubler>!
Is this issue has been resolved?
—
Reply to this email directly, view it on GitHub
<#21 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAACA7QM3UE2E7CAG4Q3T2TWXOL4FANCNFSM6AAAAAATZ4BXM4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
sebastien-guay commented
Thanks a lot!