Skip to content

reject non-object list elements in unmarshalList - #1097

Open
nabhan06 wants to merge 1 commit into
openconfig:masterfrom
nabhan06:list-scalar-element
Open

reject non-object list elements in unmarshalList#1097
nabhan06 wants to merge 1 commit into
openconfig:masterfrom
nabhan06:list-scalar-element

Conversation

@nabhan06

Copy link
Copy Markdown

guard the per-element type assertion in unmarshalList so a schema list whose JSON array holds a scalar returns an error instead of panicking, matching the non-object handling unmarshalContainer already does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant