> We could change the YANG from:
> 
>      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.

(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

Grüße, Carsten

_______________________________________________
Anima mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to