Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-319

Binding V1 ignores leaf-restrcited types

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • None
    • Binding codegen
    • None

      Using a simple model:

          typedef def {
              type string {
                  pattern "a|b";
              }
          }
      
          container foo {
              leaf foo {
                  type def {
                      pattern "a";
                  }
              }
          }
      
          container bar {
              leaf bar {
                  type string {
                      pattern "a";
                  }
              }
          }
      
      

      results in 'pattern "a"' not being enforced. Notably the builder for 'bar' ends up generating a empty length checker.

       

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

              Created:
              Updated:
              Resolved: