-
Notifications
You must be signed in to change notification settings - Fork 1.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] Type mismatch for ConfigurationSettingId.label #27607
Comments
@Eskibear Thank you for reporting the issue. I agree that this is inconsistent type for label. Instead of updating the type of label to |
@minhanh-phan Thank you for the quick response! I agree that we keep My little concern is whether the change breaks user code. It would work if they loosely check it like |
@Eskibear Thank you for raising up that point. That is a valid concern that we share. At the same time, based on app configuration public API, the value returned for label properties shouldn't be |
We have released @azure/app-configuration 1.5.0 with the fix. Please give it a try and let us know if the issue has been resolved. Thank you for raising the issue! |
it works as expected. |
Describe the bug
In response, if a setting has no label, value of the
label
field isnull
. However in the type definition, the it'sstring
orundefined
.To Reproduce
Steps to reproduce the behavior:
Expected behavior
If the value can be
null
, the type defintion ofConfigurationSettingId.label
should explicitly allow null, be likelabel?: string | null
.Screenshots
Additional context
azure-sdk-for-js/sdk/appconfiguration/app-configuration/src/models.ts
Lines 77 to 81 in d5c6a7a
Type
ConfigurationSettingResponse
extendsConfigurationSetting
, extendsConfigurationSettingParam
, finally extendsConfigurationSettingId
...The text was updated successfully, but these errors were encountered: