freeconf / restconf

Implementation of RESTCONF Management protocol - IETF RFC8040

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

sebastien-guay opened this issue · comments

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.

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

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.

commented

Hi @dhubler!

Is this issue has been resolved?

commented

Thanks a lot!