-
Notifications
You must be signed in to change notification settings - Fork 59
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
Populate enum/const from Jakarta AssertTrue and/or AssertFalse annotations #456
Populate enum/const from Jakarta AssertTrue and/or AssertFalse annotations #456
Conversation
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.
✅ Code Health Quality Gates: OK
Change in average Code Health of affected files: -0.02 (9.44 -> 9.43)
- Affected Hotspots: 1 files(s) 🔥
c50ff1a
to
eeaf37a
Compare
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.
✅ Code Health Quality Gates: OK
Change in average Code Health of affected files: -0.02 (9.44 -> 9.43)
- Affected Hotspots: 1 files(s) 🔥
eeaf37a
to
00b9426
Compare
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.
✅ Code Health Quality Gates: OK
Change in average Code Health of affected files: -0.02 (9.44 -> 9.43)
- Affected Hotspots: 1 files(s) 🔥
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.
Thank you very much for your excellent contribution.
Just one question about the validity of encountering both @AssertTrue
and @AssertFalse
simultaneously. If that isn't a relevant scenario for your use case, I'm in favor of removing that.
What do you reckon?
.../src/test/java/com/github/victools/jsonschema/module/jakarta/validation/IntegrationTest.java
Outdated
Show resolved
Hide resolved
...n/java/com/github/victools/jsonschema/module/jakarta/validation/JakartaValidationModule.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Carsten Wickner <[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.
✅ Code Health Quality Gates: OK
Change in average Code Health of affected files: -0.02 (9.44 -> 9.42)
- Improving Code Health: 1 findings(s) ✅
- Affected Hotspots: 1 files(s) 🔥
...n/java/com/github/victools/jsonschema/module/jakarta/validation/JakartaValidationModule.java
Show resolved
Hide resolved
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.
✅ Code Health Quality Gates: OK
Change in average Code Health of affected files: -0.02 (9.44 -> 9.42)
- Improving Code Health: 1 findings(s) ✅
- Affected Hotspots: 1 files(s) 🔥
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.
✅ Code Health Quality Gates: OK
Change in average Code Health of affected files: -0.02 (9.44 -> 9.42)
- Improving Code Health: 1 findings(s) ✅
- Affected Hotspots: 1 files(s) 🔥
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.
This looks very good.
I'm merging this to a feature branch, to adjust the Changelog and Contributor list in the same final merge afterward.
Thank you very much!
0f42e0b
into
victools:jakarta-assert_true_false
* feat: Populate enum/const from Jakarta AssertTrue/AssertFalse annotations (#456) * chore(docs): update changelog and bump version number --------- Co-authored-by: Jeffrey D <[email protected]>
Set
enum
/const
based on the presence of Jakarta@AssertTrue
and/or@AssertFalse
.See #455 (comment) for background info.