-
Notifications
You must be signed in to change notification settings - Fork 299
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
Need help for a 'derived-from-or-self' validation #2342
Comments
Can you please post the exact command you are executing? I have tried validating the data you posted but they contain obvious typos (such as |
./yanglint --path=/prmanna/ietf/libyang/build/yangdb/ -f json tests/ietf-network-inventory.yang yangdb/iana-hardware.yang tests/ports-transceivers-breakouts-examples.json |
|
sorry for responding late. Attached all files for the following yangint. Need your help for error.
libyang err : Expecting JSON name/object but container "parent-component-ref" is represented in input data as name/string. (/ietf-network-inventory:network-inventory/network-elements/network-element[ne-id='NE-1']/components/component[component-id='port-1']) Note: git dont allow to attach .yang file, hence added txt extention. |
Using the current libyang
I have not used the
but in your error there is
|
Hi Team,
We are using the yanglint validation for the yang with json example.
For this new change (ie. union)
https://github.com/ietf-ivy-wg/network-inventory-yang/blob/06d546603dbd58f1d6dccb371aa58204bf8a6399/ietf-network-inventory.yang#L334
the yanglint is giving error in this following validation for the example above.
https://github.com/ietf-ivy-wg/network-inventory-yang/blob/06d546603dbd58f1d6dccb371aa58204bf8a6399/ietf-network-inventory.yang#L520
Need your input here.
Thanks,
Prasenjit
The text was updated successfully, but these errors were encountered: