-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[AppConfig-BugFix] Preserve unknown properties in FeatureFlag and SecretReference ConfigurationSettings #36725
Conversation
API change check APIView has identified API level changes in this PR and created following API reviews. |
...ppconfiguration/src/main/java/com/azure/data/appconfiguration/implementation/Conditions.java
Show resolved
Hide resolved
...on/src/main/java/com/azure/data/appconfiguration/models/FeatureFlagConfigurationSetting.java
Outdated
Show resolved
Hide resolved
Just trying to understand this change a bit more before giving a detailed review. What we're trying to support is |
The service supports any custom values that the customer wants, or any additional fields the service team wants. For example we are trying to add a This issue is present in most of the SDKs. |
Okay, given this, I think we should add support for "additional properties" throughout the setting. This is fairly standard functionality where a |
- JavaDoc for JDK 20 - Spring Cloud AppConfig test fix
Offline discussion with Alan. Adding public API to support "unknown properties" which isn't in the swagger is not a good approach. Will keep no change in the SDK public surface. If supporting "unknown properties" in the public API, it should go through the swagger API archiboard and discussion. |
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.
LGTM now, I would like to test it's change before the release instead of my current work around.
FeatureFlagConfigurationSetting and SecretReferenceConfigurationSetting will now retain custom attributes in the setting value. Previously, only attributes that were defined in the associated JSON schema were allowed and unknown attributes were discarded.
fixes: #34904
Users can edit the
ConfigurationSetting
'svalue
directly or through Azure Portal UI.SecretReferenceConfigurationSetting
.