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

Unsupported leaf under causes parsing failure

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Medium
    • Resolution: Done
    • 8.0.3
    • 9.0.0, 8.0.4
    • parser

    Description

      Issue
      Adding empty collection to Supported Features will break building EffectiveModelContext. The exception thrown when build is executed is informing that the root of the issue is an invalid YANG model:
      `Leaf is missing a 'type' statement [at yangtools/parser/yang-parser-impl /target/test-classes/ietf-ip/ietf-ip@2018-02-22.yang:222:11]  `

      Expected solution

      If is not allowed providing empty collection, add condition which will check empty collection and throw actual root of issue.

      Attachments

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

        Activity

          People

            rovarga Robert Varga
            PeterSuna Peter Suna
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: