Carsten Bormann <[email protected]> wrote: >> leaf created-on { >> type yang:date-and-time; >> >> to: >> type union { >> type uint64; // when serialized to CBOR >> type yang:date-and-time; // when serialized to JSON >> }
> YANG can’t actually do that.
I created a union elsewhere.
> (The stand-in proposal shows how to do this right, without any change
> in the YANG at all [1].)
> [1]:
https://www.ietf.org/archive/id/draft-bormann-cbor-yang-standin-02.html
Yes, but it seems as far away now as it was when we first realized that I had
wrongly assumed CBOR tag(1).
... so I'm dropping this.
signature.asc
Description: PGP signature
_______________________________________________ Anima mailing list -- [email protected] To unsubscribe send an email to [email protected]
