[NETCONF-1057] OpenApi: Eliminate TOP schemas Created: 14/Jun/23 Updated: 17/Aug/23 Resolved: 17/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: | Ivan Hrasko |
| Resolution: | Done | Votes: | 0 |
| Labels: | pt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||
| Description |
|
Currently, we generate for each container element (container, list) schema and, additionally, schema with _TOP prefix. _TOP prefix is used for PUT (JSON), PATCH (JSON) and GET operations. Assuming that all operations are under path. We can change our logic in the following way:
|
| Comments |
| Comment by Ivan Hrasko [ 16/Jun/23 ] |
|
In |
| Comment by Ivan Hrasko [ 01/Aug/23 ] |
|
We cannot implement logic as proposed above because of the following reasons:
But we can remove TOP schemas for lists and container and apply their logic directly in responses. This way we will get more cleaner and user friendly schemas listing at the bottom of generated OpenApi documentation.
|
| Comment by Ivan Hrasko [ 01/Aug/23 ] |
|
Please see proposed OpenApi docs after modifications: expected-TOP-removal-for-containers.json |