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

Differentiate between declared (XSD) and enforcement (java.util.regex) patterns

    XMLWordPrintable

Details

    Description

      The strings we are using for IllegalArgumentExceptions in generated code are Java Pattern regexes and are an implementation detail of how enforcement is done. End users should not be exposed to this detail.

      yang-model-api is exposing both Java Pattern and XSD regex as declared in the model, hence codegen can capture the XSD regex and report that, leading to proper isolation between API contract (enforce the XSD regex (non-) match) and implementation (checking using Pattern).

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: