[changing subject line]

> On Apr 17, 2020, at 4:16 AM, Juergen Schoenwaelder 
> <[email protected]> wrote:
> 
> On Fri, Apr 17, 2020 at 01:13:54AM +0000, Kent Watsen wrote:
>> 
>>>>>> PS: the "token” type add discussion from before never completed (again, 
>>>>>> modeled after xsd:token)
>>>> 
>>>> What about this?
>>>> 
>>> 
>>> What would this type be good for? Any models already using something
>>> like this?
>> 
>> 
>> Not in a standard model, that I’m aware of but, back at Juniper, I had a 
>> typedef for this that I used as a basis for so many things, but mostly 
>> things intended to be identifiers of sorts, whereby having whitespace didn’t 
>> make sense.
>> 
> 
> This type does not eliminate whitespace, it only reduces multiple
> consecutive whitespaces to one.

Leading/trailing whitespace :sigh:  Too pedantic much?

Please, think about the gazillion models where there is this:

    leaf name {
        type string;
        description ”An arbitrary name for the…”;
    }

It’s obvious the name shouldn’t contain paragraphs of text or, in general, 
non-printable characters of any sort, or preceding/trailing space characters.  
Given this preponderance of this use case and the history of module-writers not 
defining the necessary pattern statements, a “token” type would be welcomed.   
For instance:

    leaf name {
        type token;
        description ”An arbitrary name for the…”;
    }


Kent // contributor



_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to