Skip to content
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

CRDGenerator: Allow to use @PreserveUnknownFields on getter method #6740

Open
baloo42 opened this issue Dec 17, 2024 · 0 comments
Open

CRDGenerator: Allow to use @PreserveUnknownFields on getter method #6740

baloo42 opened this issue Dec 17, 2024 · 0 comments

Comments

@baloo42
Copy link
Contributor

baloo42 commented Dec 17, 2024

Is your enhancement related to a problem? Please describe

The @PreserveUnknownFields annotation is currently limited to fields.

Describe the solution you'd like

It should be possible to use it also on a getter method:

@Target({ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface PreserveUnknownFields {
}

Describe alternatives you've considered

No response

Additional context

Related to #6739

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant