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

Unsupported leaf under causes parsing failure

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • 9.0.0, 8.0.4
    • 8.0.3
    • parser

      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.

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

              Created:
              Updated:
              Resolved: