-
Notifications
You must be signed in to change notification settings - Fork 21
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
Update yangtools to 6.0.7 #53
Conversation
ihrasko
commented
Apr 26, 2022
- Update to use Java 11 - yangtools version 6.0.7 requires it.
- Update maven plugins to the latest versions.
- Bump logback version in order to fix CVE-2021-42550.
- Bump yangtools to 6.0.7 and adapt code to use it properly.
88fd61b
to
863f808
Compare
it looks OK, let me build + run it and check one additional aspect regarding RPC in/out and if there are no problems I will integrate that with the code base. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good - the only thing I would really want to understand is in AbstractDataObjectBuilder
before I integrate that into main. Thank you for the contribution
swagger-generator/src/main/java/com/mrv/yangtools/codegen/impl/path/PutOperationGenerator.java
Outdated
Show resolved
Hide resolved
swagger-generator/src/main/java/com/mrv/yangtools/codegen/impl/path/PostOperationGenerator.java
Outdated
Show resolved
Hide resolved
...ger-generator/src/main/java/com/mrv/yangtools/codegen/impl/path/PatchOperationGenerator.java
Outdated
Show resolved
Hide resolved
swagger-generator/src/main/java/com/mrv/yangtools/codegen/impl/path/GetOperationGenerator.java
Outdated
Show resolved
Hide resolved
...er-generator/src/main/java/com/mrv/yangtools/codegen/impl/path/DeleteOperationGenerator.java
Outdated
Show resolved
Hide resolved
swagger-generator/src/main/java/com/mrv/yangtools/codegen/impl/AbstractDataObjectBuilder.java
Outdated
Show resolved
Hide resolved
f20b1ce
to
0d96b43
Compare
@ihrasko I built your changes and tried generating swagger - Two items I noticed there:
|
0d96b43
to
81daa36
Compare
Q: It's generating every leaf properties with "default": "" and "description": "" if it's not defined in yang, which is probably ok, but why to keep empty placeholders A: Fixed. |
81daa36
to
44d3413
Compare
Q: It's not generating paths for /config/** /operational/** |
0f6542e
to
bd0dbd9
Compare
hey, I just came back from long vacation - will look at this PR today. |
Hi, I have noticed that for some time integration tests were not triggered as part of the standard build. I have added them in the master branch and fixed failing tests (due to changes in how paths are interpreted). |
OK, I will check. |
3a06a8e
to
fbff0d1
Compare
@bartoszm I will try to rebase this PR on master branch and solve remaining issues - next week or so :D |
Enable Java 11 source and target compatibility. Signed-off-by: Ivan Hrasko <[email protected]>
Bump maven-compiler-plugin to 3.10.1 and maven-source-plugin to 3.2.1. Signed-off-by: Ivan Hrasko <[email protected]>
Bump logback to 1.2.11 which contains fix for https://cve.report/CVE-2021-42550. See: https://logback.qos.ch/news.html Signed-off-by: Ivan Hrasko <[email protected]>
Update yangtools version from 1.2.1 to 6.0.7. Signed-off-by: Ivan Hrasko <[email protected]>
Adapt the code to use new classes, statements, utilities and features of yangtools 6.0.7. Signed-off-by: Ivan Hrasko <[email protected]>
Replace SchemaContext with more recent EffectiveModelContext. SchemaContext is planned to be removed in the future. Signed-off-by: Ivan Hrasko <[email protected]>
The original message got lost during migration to yangtools 6.0.7. Revert it back. Signed-off-by: Ivan Hrasko <[email protected]>
Use unique grouping name in test to ensure YANG model is valid according to: https://datatracker.ietf.org/doc/html/rfc7950#section-6.2.1 Signed-off-by: Ivan Hrasko <[email protected]>
Replace joda time with Java 11 java.time package classes. Signed-off-by: Ivan Hrasko <[email protected]>
fbff0d1
to
09f7122
Compare
RegularListEffectiveStatement cannot find equal object similar way as ListEffectiveStatementImpl. This is not a complete fix. It just points to where the problem is. Signed-off-by: Ivan Hrasko <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now. I have fixed augmentations bit and modified a bit tests covering this functionality. I hope you don't mind. Thanks for your contribution