Skip to content

Commit

Permalink
Fix a few things.
Browse files Browse the repository at this point in the history
* Revision-label scheme is a top element
* Don't use a '-' in front of compatible and noncompatible
  • Loading branch information
jclarke-csco committed Jun 30, 2020
1 parent f32d9d7 commit 1e06aa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yang-semver/ietf-yang-semver.yang
Expand Up @@ -2,6 +2,7 @@ module ietf-yang-semver {
yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-yang-semver";
prefix yangver;
rev:revision-label-scheme "yang-semver";

import ietf-yang-revisions {
prefix rev;
Expand Down Expand Up @@ -39,7 +40,6 @@ module ietf-yang-semver {

revision 2020-06-30 {
rev:revision-label "1.0.0-draft-ietf-netmod-yang-semver-01";
rev:revision-label-scheme "yang-semver";
description
"Initial revision";
reference
Expand Down Expand Up @@ -67,7 +67,7 @@ module ietf-yang-semver {

typedef version {
type string {
pattern '\d+[.]\d+[.]\d+(-(non)?compatible)?(-[\w\d.]+)?([+][\w\d\.]+)?';
pattern '\d+[.]\d+[.]\d+((non)?compatible)?(-[\w\d.]+)?([+][\w\d\.]+)?';
}
description
"Represents a YANG semantic version number. The rules governing the
Expand Down

0 comments on commit 1e06aa2

Please sign in to comment.