[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:
Blocks
blocks NETCONF-1025 OpenAPI: Eliminate JsonUtil#addFields... Resolved
Relates
relates to NETCONF-938 Cannot generate API docs for Junos de... In Review

 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.


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