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

Add JsonProperty to ControlPlanePluginConfig constructor parameter #996

Merged
merged 3 commits into from
Jul 26, 2024

Conversation

minwoox
Copy link
Contributor

@minwoox minwoox commented Jul 26, 2024

Modification:

  • Add JsonProperty to ControlPlanePluginConfig constructor parameter

Result:

  • You can now configure ControlPlanePluginConfig via configuration file properly.

Modification:
- Add `JsonProperty` to `ControlPlanePluginConfig` constructor parameter

Result:
- You can now configure `ControlPlanePluginConfig` via configuration file properly.
Copy link
Contributor

@jrhee17 jrhee17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 👍 👍

@@ -26,7 +28,7 @@ public final class ControlPlanePluginConfig extends AbstractPluginConfig {
/**
* Creates a new instance.
*/
public ControlPlanePluginConfig(@Nullable Boolean enabled) {
public ControlPlanePluginConfig(@JsonProperty("enabled") @Nullable Boolean enabled) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we need @JsonCreator?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not needed when there's only one constructor. Let me add it though for clarity.

Copy link
Member

@trustin trustin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@ikhoon ikhoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 🙇‍♂️🙇‍♂️

@minwoox minwoox added this to the 0.67.2 milestone Jul 26, 2024
@minwoox minwoox merged commit 01efcff into line:main Jul 26, 2024
10 checks passed
@minwoox minwoox deleted the controlPlaneConfig_fix branch July 26, 2024 10:30
minwoox added a commit that referenced this pull request Jul 26, 2024
)

Modification:
- Add `JsonProperty` to `ControlPlanePluginConfig` constructor parameter

Result:
- You can now configure `ControlPlanePluginConfig` via configuration file properly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants