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

Boolean/String union parsing results in wrong type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • 5.0.0
    • None
    • codecs
    • None

      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".

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

              Created:
              Updated:
              Resolved: