Move yang-common(-netty)
[yangtools.git] / yang / yang-data-codec-gson / src / test / resources / bug-6112 / yang / union-with-identityref.yang
1 /*
2  * Copyright (c) 2016 Intel Corporation and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 module union-with-identityref {
10     yang-version 1;
11     namespace "union:identityref:test";
12     prefix "unionidentityreftest";
13
14     description "test union with identityref";
15
16     revision "2016-07-12";
17
18     identity ident-base;
19     identity ident-one {
20         base ident-base;
21     }
22
23     typedef union-type {
24         type union {
25             type uint8;
26             type identityref {
27                 base ident-base;
28             }
29         }
30     }
31
32     container root {
33         leaf leaf-value {
34             type union-type;
35         }
36     }
37 }