freeconf/restconf

Support verifying that a leaf of type empty is present or not in ActionRequest.Input

sebastien-guay opened this issue · 6 comments

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.

I created branch issue-21 with fix to checkout. GetValue() should return something now. GetValue() == val.NotEmpty in fact

I'll merge this in few days if i do not hear from you otherwise that this doesn't work for you

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.

Hi @dhubler!

Is this issue has been resolved?

Thanks a lot!