netmod-wg / yang-next

Feature requests for future versions of YANG
6 stars 0 forks source link

Clarify canonical order in RFC 7950 #110

Open rgwilton opened 3 years ago

rgwilton commented 3 years ago

RFC 7950 states this:

The ABNF grammar [RFC5234] [RFC7405] defines the canonical order.

But the ABNF also has sections that state:

;; these stmts can appear in any order

These two statements seem to cause some confusion, and hence it might be helpful to clarify that the ";; these stmts can appear in any order" does not remove the need to list statements in the order listed in the ABNF for them to be regarded as being in canonical order.

abierman commented 1 week ago

Clarification needed. The order in the ABNF is the canonical order (I think) Verify or clarify this detail.

How does pyang --strict decide the canonical order for these unordered statements?

Must do