[NETCONF-1024] OpenAPI: Use Java Schema object instead of JsonNode Created: 10/May/23 Updated: 14/Jun/23 Resolved: 18/May/23 |
|
| Status: | Resolved |
| Project: | netconf |
| Component/s: | restconf-openapi |
| Affects Version/s: | None |
| Fix Version/s: | 6.0.0 |
| Type: | Improvement | Priority: | Medium |
| Reporter: | Ivan Hrasko | Assignee: | Oleksandr Zharov |
| Resolution: | Done | Votes: | 0 |
| Labels: | pt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
Create new Java Schema object according to Schema Object chapter at https://swagger.io/specification/. Then change Components object as follows:
private ObjectNode schemas;
to: private Map<String, Schema> schemas; and resolve all consequences in the codebase. As a result we can remove JsonUtil#addFields method which is addressed by another issue. |