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

Boolean/String union parsing results in wrong type

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 5.0.0
    • codecs
    • None

    Description

      When we are presented with the following model:

      module foo {
        leaf foo {
          type union {
            type boolean;
            type string;
          }
        }
      }
      

      we end up interpreting input string "TRUE" as a valid boolean and hence normalize it to the wrong value – and really end up transforming the value when transmitting it to wire, as we turn it into "true".

      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: