Details
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;
}
}
}
}
Attachments
| # | Subject | Branch | Project | Status | CR | V |
|---|---|---|---|---|---|---|
| 108394,7 | OpenApi: Fix 'min-elements' for XML Leaf-List | master | netconf | Status: MERGED | +2 | +1 |
| 108550,3 | OpenApi: Fix 'min-elements' for XML Leaf-List | 6.0.x | netconf | Status: MERGED | +2 | +1 |
| 108551,8 | OpenApi: Fix 'min-elements' for XML Leaf-List | 5.0.x | netconf | Status: MERGED | +2 | +1 |
| 108552,7 | OpenApi: Fix 'min-elements' for XML Leaf-List | 4.0.x | netconf | Status: MERGED | +2 | +1 |