[NETCONF-1052] OpenApi: Rework interaction with OpenApiObject Created: 07/Jun/23  Updated: 08/Aug/23  Resolved: 08/Aug/23

Status: Resolved
Project: netconf
Component/s: restconf-openapi
Affects Version/s: None
Fix Version/s: 7.0.0

Type: Task 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


 Description   

We interact with OpenApiObject in unfortunate way:

  1. we are creating OpenApiObject.Builder several times
  2. then we are mutating schemas
  3. then we are mutating paths
  4. we are relying on side effects (fillDoc method returning void)

We can make better if we try to rework our logic to prepare schemas ans paths beforehand and then just create one OpenApiObject instance.


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