Skip to content

Commit

Permalink
detect accessors with the same name as field in CRD generation (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
euberseder-hubspot authored Feb 4, 2025
1 parent ae1243d commit fcf7668
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,10 @@ public PropertyFacade(Property property, Map<String, Method> potentialAccessors,
if (method != null) {
propertyOrAccessors.add(PropertyOrAccessor.fromMethod(method, name));
}
method = potentialAccessors.get(name);
if (method != null) {
propertyOrAccessors.add(PropertyOrAccessor.fromMethod(method, name));
}
schemaFrom = schemaSwap;
defaultValue = null;
min = null;
Expand Down

0 comments on commit fcf7668

Please sign in to comment.