Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-317

Generated types fail to validate string patterns

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 1953

    Description

      The following yang snippet:

      typedef foo {
      type string;
      pattern "[ab]*";
      }

      Results in correct pattern being recorded in the generated class, but that pattern is never used to enforce correct string format.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              rovarga Robert Varga
              rovarga Robert Varga
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: