[NETCONF-1171] OpenAPI Generates Incorrect 'min-elements' for XML Leaf-List Created: 02/Oct/23 Updated: 31/Oct/23 Resolved: 31/Oct/23 |
|
| Status: | Resolved |
| Project: | netconf |
| Component/s: | restconf-openapi |
| Affects Version/s: | None |
| Fix Version/s: | 7.0.0, 4.0.9, 6.0.5, 5.0.10 |
| Type: | Bug | Priority: | Medium |
| Reporter: | Peter Suna | Assignee: | Ľuboš Čičut |
| Resolution: | Done | Votes: | 0 |
| Labels: | pt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Description |
|
OpenAPI generates the required number of elements only for JSON example requests, while the XML example contains only one element. Generated examples for this model are attached.
module test-container-childs {
namespace "http://example.com/test/container/child";
prefix "tcc";
revision 2023-09-28;
container root-leaf-list-container {
container nested-leaf-list-container {
leaf-list leaf-list-with-min-elements {
min-elements 2;
max-elements 3;
type string;
}
}
}
}
|