It is as it is for now and hence module authors have to be careful with unions. Fixing this issue might require a new version of YANG (depending on how you look at the issue), something that has been talked about (for some years) but so far no serious action has been started to seriously work on a revision of YANG.
https://github.com/netmod-wg/yang-next/issues/72 /js On Fri, Jul 17, 2020 at 08:28:35AM +0200, Michal Vaško wrote: > Thanks for the answers and sorry for not searching the mailing list archive > first. > > However, I interpret your answers as "we know about it, it is not ideal, but > it will stay the way it is". I was hoping for something better. > > Regards, > Michal > > On Thursday, July 16, 2020 17:55 CEST, Juergen Schoenwaelder > <[email protected]> wrote: > > > On Thu, Jul 16, 2020 at 04:24:43PM +0200, Michal Vaško wrote: > > > > > > Similar problem occurs also for boolean. So I am just wondering, is this > > > a known bug/feature, is it intentional? It is true that applications > > > usually choose one format and stick to it but it is not a requirement and > > > I can see this having possibly quite nasty consequences. > > > > > > > This is known and has already be known when the JSON format was > > standardized. Whether it is a feature or a bug (and if so where > > the bug is) depends on whom you talk to. > > > > /js > > > > -- > > Juergen Schoenwaelder Jacobs University Bremen gGmbH > > Phone: +49 421 200 3587 Campus Ring 1 | 28759 Bremen | Germany > > Fax: +49 421 200 3103 <https://www.jacobs-university.de/> > > > -- Juergen Schoenwaelder Jacobs University Bremen gGmbH Phone: +49 421 200 3587 Campus Ring 1 | 28759 Bremen | Germany Fax: +49 421 200 3103 <https://www.jacobs-university.de/> _______________________________________________ netmod mailing list [email protected] https://www.ietf.org/mailman/listinfo/netmod
