Carsten Bormann <[email protected]> wrote:
>>>> 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.
> YANG can do unions.
> It can’t do “// when serialized to”.
Sure, that's gotta be done by humans coding.
The receiver might have to deal with either one.
--
] Never tell me the odds! | ipv6 mesh networks [
] Michael Richardson, Sandelman Software Works | IoT architect [
] [email protected] http://www.sandelman.ca/ | ruby on rails [
_______________________________________________
Anima mailing list -- [email protected]
To unsubscribe send an email to [email protected]