Leaf without type

Is there a way to create a ‘binary leaf’ - a leaf without type.

container {
    leaf a;
};

So I would know only if the leaf exists or not?

Thanks

container c {
leaf a { type empty; }
}

See RFC 6020 Chapter 9.11 “The empty Built-In Type”

1 Like