Generate fields for all Identityrefs in an Union binding class
[mdsal.git] / binding / mdsal-binding-java-api-generator / src / test / resources / compilation / union-with-multiple-identityrefs / union-with-multi-identityrefs.yang
1 /*
2  * Copyright (c) 2022 PANTHEON.tech s.r.o. 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-multi-identityref {
10   yang-version 1;
11   namespace "urn:opendaylight:yang:union:test";
12   prefix "uniontest";
13
14   description "test union with multiple identityref";
15
16   revision "2022-04-28";
17
18   identity ident-one;
19   identity ident-two;
20
21   typedef union-type {
22     type union {
23       type identityref {
24         base ident-one;
25       }
26       type identityref {
27         base ident-two;
28       }
29     }
30   }
31
32   leaf test-union-leaf{
33     type union-type;
34   }
35 }