Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON leaf-list output single element leaf-list does not use array #289

Closed
swh1991 opened this issue Nov 29, 2021 · 1 comment
Closed

JSON leaf-list output single element leaf-list does not use array #289

swh1991 opened this issue Nov 29, 2021 · 1 comment

Comments

@swh1991
Copy link

swh1991 commented Nov 29, 2021

Be similar Bug 261, use release version 5.3 , issue persist , different use and result is different.

Example YANG, result is ok.

container test {
leaf-list number{
type int32;
}
}
Expected output:
{"test": {"number": [1]}
Actual output:
{"test": {"number": [1]}
Example YANG, result is error.

leaf-list number{
type int32;
}
Expected output:
{"number": [1]}
Actual output:
{"number": 1}​

@olofhagsand
Copy link
Member

Please verify

@swh1991 swh1991 closed this as completed Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants