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

Binding Specification: Type empty needs better representation than Boolean or Null vs NonNull

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Resolution: Done
    • None
    • 4.0.0
    • None
    • Operating System: Windows
      Platform: PC

    Description

      In Binding specification v1 YANG type empty was represented as Boolean, which was bit confusing. In normalized Node it is represented as java.lang.Void type which is bit unusual type to work with in normal code path.

      Type empty needs better representation which will clearly describe it semantics:
      Leaf present. The best way is to introduce enumeration with value PRESENT
      eg. Empty.PRESENT and null could still be not present.

      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
              tony.tkacik@gmail.com Tony Tkacik
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: