Details
-
Improvement
-
Status: Resolved
-
Resolution: Done
-
None
-
None
-
None
-
None
-
Operating System: All
Platform: All
Description
Greetings,
in ietf-yang-types project there is generated class MacAddress having following flaws:
- Pattern is not thread safe - should not be compiled once in static block
- field patterns is not accessible so it can't be really validated
Questions/Suggestions:
- why is it not validated in contructor (string version)?
- if it is not efficient to validate at creation time, can the regex pattern list be exposed to validate later?