Cannot generate API docs for Junos device (NETCONF-938)

[NETCONF-982] Reduce the number of schema objects Created: 21/Mar/23  Updated: 25/Aug/23  Resolved: 25/Aug/23

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

Type: Sub-task Priority: Medium
Reporter: Ivan Hrasko Assignee: Samuel Schneider
Resolution: Done Votes: 0
Labels: pt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File my-yang@2022-10-06.yang    
Issue Links:
Blocks
blocks NETCONF-1061 OpenApi: Remove paths which provide o... Resolved
Relates
relates to NETCONF-938 Cannot generate API docs for Junos de... In Review

 Description   

ODL apidoc implementation creates a lot of schemas objects even for simple models like my-yang@2022-10-06.yang. This file contains just one container with one leaf and we have 6 schemas objects instead of 2.

We can see that petstore example is using the same schemas object for PUT, POST, XML, JSON, etc. Thus in ODL, we are creating a lot of objects without any reason to do so (except of wasting memory).


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