-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[crd-generator] Fix fallback value of Default
annotation in presence of multiple accessors
#5503
Conversation
@@ -558,7 +558,7 @@ public Property process() { | |||
LOGGER.debug("Description for property {} has already been contributed by: {}", name, descriptionContributedBy); | |||
} | |||
} | |||
defaultValue = p.getDefault().orElse(null); | |||
defaultValue = p.getDefault().orElse(defaultValue); |
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.
for the records, this is the bug.
public class ZookeeperSpec { | ||
|
||
@SpecReplicas | ||
private int size; | ||
@Required | ||
private String version; | ||
@Default("false") |
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.
Please, take note that the issue was reproducible only here.
crd-generator/api/src/test/java/io/fabric8/crd/generator/v1/JsonSchemaTest.java
Outdated
Show resolved
Hide resolved
Kudos, SonarCloud Quality Gate passed! 0 Bugs 100.0% Coverage The version of Java (11.0.20.1) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. |
Description
Fix #5501
Type of change
test, version modification, documentation, etc.)
Checklist