[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.


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