[NETCONF-1041] OpenApi: Transform model to Java records Created: 25/May/23 Updated: 14/Jun/23 Resolved: 07/Jun/23 |
|
| Status: | Resolved |
| Project: | netconf |
| Component/s: | restconf-openapi |
| Affects Version/s: | None |
| Fix Version/s: | 6.0.0 |
| Type: | Task | Priority: | Medium |
| Reporter: | Ivan Hrasko | Assignee: | Yaroslav Lastivka |
| Resolution: | Done | Votes: | 0 |
| Labels: | pt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
Convert all domain Java classes in org.opendaylight.restconf.openapi.model into Java records and create builders in case we need to mutate them. For example we are mutating paths, schemas, etc. Use builder during mutation and then create final record object. See https://blogs.oracle.com/javamagazine/post/exploring-joshua-blochs-builder-design-pattern-in-java |