-
Bug
-
Resolution: Done
-
Medium
-
None
OpenAPI generates an example for a list with only one element, even when the min-elements constraint is set.
Generated example for this model is attached.
module test-container-childs { namespace "http://example.com/test/container/child"; prefix "tcc"; revision 2023-09-28; container root-container { container nested-container { list mandatory-list { min-elements 2; max-elements 3; key id; leaf id { type uint32; } } } } }
Expected example payload:
{ "nested-container": { "mandatory-list": [ { "id": 0 }, { "id": 1 } ] } }