Andy Bierman <a...@yumaworks.com> writes: > On Fri, Sep 10, 2021 at 9:47 AM Randy Presuhn < > randy_pres...@alumni.stanford.edu> wrote: > >> Hi - >> >> On 2021-09-10 9:42 AM, Andy Bierman wrote: >> > Hi, >> > >> > Maybe the use of [null] in RFC 7951 is confusing people >> > https://datatracker.ietf.org/doc/html/rfc7951#section-6.9 >> > <https://datatracker.ietf.org/doc/html/rfc7951#section-6.9> >> >> Are you suggesting that the type of this leaf should be a >> choice of unit16 and empty? At least that wouldn't >> have the ambiguity under access control Jürgen described. >> >> > > No, but the access control issue applies everywhere so it is usually ignored > and assumed that the client can view all the server data. The client could > be > blocked from viewing the empty, so this choice does not help. > > I was just guessing at the source of the confusion that YANG has a null > value.
This shouldn't be too confusing, as that "null" in JSON encoding is also wrapped in an array. This was done exactly because otherwise some programming languages (JavaScript) don't make distinction between null values and missing properties. Lada > > > Randy >> >> > Andy > > >> _______________________________________________ >> netmod mailing list >> netmod@ietf.org >> https://www.ietf.org/mailman/listinfo/netmod >> > _______________________________________________ > netmod mailing list > netmod@ietf.org > https://www.ietf.org/mailman/listinfo/netmod -- Ladislav Lhotka Head, CZ.NIC Labs PGP Key ID: 0xB8F92B08A9F76C67 _______________________________________________ netmod mailing list netmod@ietf.org https://www.ietf.org/mailman/listinfo/netmod