Validate cross-revision imports and includes
[yangtools.git] / parser / rfc8040-parser-support / src / test / resources / yang-data-extension-test / foo-invalid-3.yang
1 module foo {
2     namespace foo;
3     prefix foo;
4
5     import ietf-restconf {
6         prefix rc;
7     }
8
9     revision 2017-06-01;
10
11     rc:yang-data "my-yang-data" {
12         // invalid top level node, it must be a container = should throw an exception
13         leaf lf {
14             type string;
15         }
16     }
17 }