Require union field to be set 76/103176/2
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 9 Nov 2022 18:05:46 +0000 (19:05 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 9 Nov 2022 18:14:02 +0000 (19:14 +0100)
commit3830f29ff52775324072a30e8cc3bc9b9a41233f
treefdeaf8f0226a8564d771a06fde68f71e6b6742ee
parent0722dab3fc61a1dcdaeeb15b525c8c1fc724313c
Require union field to be set

Do not allow an union type object to be costructed without supplying one
of its alternatives.

JIRA: MDSAL-792
Change-Id: I69a9dc3f0094cc9ff03d0846d5f9dcc746417628
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-java-api-generator/src/main/java/org/opendaylight/mdsal/binding/java/api/generator/UnionTemplate.xtend
binding/mdsal-binding-test-model/src/test/java/org/opendaylight/mdsal/binding/test/model/Mdsal792Test.java [new file with mode: 0644]