[NETCONF-983] OpenAPI: Fix choice cases usage Created: 21/Mar/23 Updated: 27/Jun/23 Resolved: 19/Apr/23 |
|
| Status: | Resolved |
| Project: | netconf |
| Component/s: | restconf-openapi |
| Affects Version/s: | None |
| Fix Version/s: | 5.0.5, 4.0.9 |
| Type: | Bug | Priority: | Medium |
| Reporter: | Ivan Hrasko | Assignee: | Yaroslav Lastivka |
| Resolution: | Done | Votes: | 0 |
| Labels: | pt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Currently we are generating all cases from choice into payload used as example in apidoc. This is incorrect because we can use only one case at the time. Choice case nodes are incompatible according to https://www.rfc-editor.org/rfc/rfc7950#page-27 thus I propose to use first case (or default if specified) node in apidoc example. |