[YANGTOOLS-248] Unions are being generated to src/main/java not src/main/yang-gen-sal Created: 03/Aug/14  Updated: 10/Apr/22  Resolved: 04/Aug/14

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Ed Warnicke Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Mac OS
Platform: PC


External issue ID: 1476

 Description   

Unions are being generated to src/main/java not src/main/yang-gen-sal



 Comments   
Comment by Tony Tkacik [ 04/Aug/14 ]

src/main/java contains code for missing part of unions - deserialization of string, which could not be autogenerated, and should be writen by model creator, since it is impossible to detect which type should be used (and is prefered in cases such as:

union foo

{ type string; type inet:uri; }

If you look at definition of inet:uri it does not contain any programatic
hint (regex...), so it is to module owner to implement missing selection
which format should be used.

Comment by Tony Tkacik [ 04/Aug/14 ]

src/main/java contains code for missing part of unions - deserialization of string, which could not be autogenerated, and should be writen by model creator, since it is impossible to detect which type should be used (and is prefered in cases such as:

union foo

{ type string; type inet:uri; }

If you look at definition of inet:uri it does not contain any programatic
hint (regex...), so it is to module owner to implement missing selection
which format should be used.

Generated at Wed Feb 07 20:52:41 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.