Feature/yangkit complete validation#38
Conversation
ahuangfeng
commented
May 24, 2025
- Update antl4-runtime to 4.11.1
- force Java 11
- Allow not mandatory root schemas to not be present in the encoded message.
- Allow augmentation of mandatory nodes without "when" statements within the same module (errata; Andy reported that it should allowed when it is within the same module)
- Allow messages without the wrapper "data".
- Example of parsing ietf-interfaces.yang
|
why force java 11? java 8 is the most popular. |
|
and I cannot merge this PR for some conflicts are not resolved. |
This PR #38 is to be merged after main branch is fixed (currently Regarding forcing java 11, I can rollback if needed |
hi, I have published a new version,1.5.0, and the main branch has been fixed. |
|
|
||
| if (!result.isOk()) { | ||
| for (ValidatorRecord<?, ?> record : result.getRecords()) { | ||
| System.out.println("Error: "+ record.getBadElement() + ':' + record.getErrorMsg().getMessage()); |
There was a problem hiding this comment.
for those printed info, how about using record.getSeverity() instead of all as Error?
(so that other severities such as Warning etc. can be distinguished from here)
There was a problem hiding this comment.
only ‘Error’ means result is not ok,:)
b025a6e to
42ea5f8
Compare