Skip to content

Commit

Permalink
lib.yang.data: do not derive bogus ctype for leaf-lists
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneia committed May 20, 2022
1 parent e3f4d77 commit 4bbd11e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/yang/data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ function data_grammar_from_schema(schema, is_config)
handlers['leaf-list'] = function(node)
if node.config ~= is_config then return end
local t = elide_unions(node.type)
return {type='array', element_type=t, ctype=value_ctype(t),
return {type='array', element_type=t,
min_elements=node.min_elements, max_elements=node.max_elements}
end
function handlers.list(node)
Expand Down

0 comments on commit 4bbd11e

Please sign in to comment.