netmod-wg / yang-next

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

Clarify duplicate revision dates used in revision history #99

Open abierman opened 4 years ago

abierman commented 4 years ago

The RFC does not mention any error condition if multiple revision-stmts have the same revision-date value. This occurs in openconfig-inet-types.yang and other real modules.

YANG has no way to distinguish between the various revisions that are all published on the same date.

It should be an error if multiple revision-stmts have the same revision date. yangdump-pro flags this as a warning. No other compilers complain about this issue (AFAIK)

abierman commented 1 week ago

Agree must clarify this detail. Revision dates do not need to be unique.

Since openconfig already does this, and YANG 2.0 will have semver, this should be OK. Just add warning that a YANG 1.1 filename cannot distinguish between different module contents in this case.

Must do: complexity: low, bc: high, importance: medium