On Tue, Aug 29, 2023 at 11:04:37AM +0800, [email protected] wrote: > But I think rfc7950 section 9.1 is only about yang built-in type because > section 9's title is built-in type. > > If someone define a leaf with date-and-time type but modify it's pattern > to only Z-suffix time form( this is valid in rfc7950), and then if the > server still reply the value with +08:00 form, then the server actually > reply an invalid value which violates the pattern. > So I think it is not a good practice for a server to do such value change > in reply for the non built-in type. >
Canonicalization comes into play when there are multiple possible _representations_ of the same value. The idea is that a server may accept different representations as input but always responds with a predictable representation as output. /js -- Jürgen Schönwälder Constructor University Bremen gGmbH Phone: +49 421 200 3587 Campus Ring 1 | 28759 Bremen | Germany Fax: +49 421 200 3103 <https://constructor.university/> _______________________________________________ netmod mailing list [email protected] https://www.ietf.org/mailman/listinfo/netmod
