Skip to content

Conversation

@ahassany
Copy link

Add an option to enable strict parsing for anydata subtrees in json and xml parsers.

The option is exposed in yanglint command line as -A, --anydata-strict.

Add an option to enable strict parsing for anydata subtrees in json
and xml parsers.

The option is exposed in yanglint command line as -A, --anydata-strict.
Copy link
Member

@michalvasko michalvasko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes are fine but tests should be added, an existing one can only be extended with a few more XML examples with this flag.

@ahassany
Copy link
Author

Thank @michalvasko for the feedback, just added some more unit tests.

@michalvasko michalvasko merged commit aa3ae1d into CESNET:devel Dec 16, 2025
11 checks passed
@michalvasko
Copy link
Member

Thanks, merged.

@ahassany ahassany deleted the anydata-strict-validation branch December 16, 2025 14:06
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.

2 participants