Comments (5)
Adding nullability to an existing API that has been released is considered a breaking change and is not something that we would be adding in the current form. To avoid inconsistencies, we do not currently have plans to annotate new members in existing libraries. We are continuing to monitor changes in the .NET ecosystem and tooling and should a path become available to introduce annotations in a non-breaking way, we may reconsider at that point. At present, this is not something that we will be adding.
from azure-sdk-for-net.
Hi @vanillajonathan. Thank you for reaching out and we regret that you're experiencing difficulties. The Service Bus client library is intentionally not annotated for nullability. Nullable reference annotations are something that we continue to evaluate for Azure SDK packages as the language and tooling evolves, but not something that we'll be enabling in the short term. There are several reasons for this, the most important being:
-
The Azure SDK strives to have a consistent set of patterns and feel across different libraries. As such, nullable reference annotations are not something that would be applied to individual libraries; it would be a decision that we need to apply to all of our current generation packages.
-
For most of our libraries, the service definitions do not adequately document which fields may be null. We continue to work with our service partners to improve these definitions, but it's a large effort that we expect to continue for some time.
-
Tooling still doesn't provide a thorough understanding of what breaking changes would be introduced by enabling nullable reference annotations. Avoiding breaking changes is one of the most important core tenants of the current Azure SDK generation; until we have confidence that we can prove that nullable reference annotations are safe for the public APIs that they were added to, the risk outweighs the reward.
Additional rationale and discussion can be found in #8880.
from azure-sdk-for-net.
Hi @vanillajonathan. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.
from azure-sdk-for-net.
/unresolve That issue is several years old. Now is new times so it ought to be reconsidered.
This caused a bug for me and having the library annotated for nullability would improve the developer experience and reduce downstream bugs.
The Azure SDK would continue to be consistent across different libraries even with nullability since the API and behavior would remain the same. Nullability is just a compiler hint.
from azure-sdk-for-net.
Hi @vanillajonathan. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.
from azure-sdk-for-net.
Related Issues (20)
- [QUERY] Canadian Personal Health Numbers not being detected by Text Analytics RecognizePiiEntitiesAsync method HOT 1
- Azure.Core: Optimize RequestContent.Create from IPersistableModel<T>
- [BUG] Microsoft.Azure.Functions.Worker.Extensions.ServiceBus generates references to NuGet packages with known vulnerablities HOT 1
- [FEATURE REQ] Add option to opt out of Check Pointing
- [FEATURE REQ] When in prompt mode, Infrastructure pre-adds `param location string = resourceGroup().location`. HOT 1
- [FEATURE REQ] Make it possible to pass correlation id through ClientCertificateCredential to MsalConfidentialClient/AcquireTokenForClientParameterBuilder HOT 4
- [Core] SSE: Analysis and design
- [BUG] Combining a ChatCompletionsFunctionToolDefinition with an AzureCognitiveSearchChatExtensionConfiguration breaks the API HOT 6
- Azure.Core pipeline has a very high failure rate and we need to get this green. HOT 7
- [OpenAI] Improve debugger viewer support HOT 1
- [OpenAI] Add logging policy for unbranded OpenAI HOT 1
- [BUG] Storage upload failing. HOT 11
- [FEATURE REQ] Add CacheControl as a configurable option for new blobs in BlobCheckpointStore HOT 14
- [BUG] Inconsistent Region disply name for US GOV locations HOT 4
- [BUG] Calling Azure.Analytics.Purview.Account's GetCollections() won't compile
- Queries about to One to One chat and same client Rejoing same group with previous chat HOT 1
- [DocumentIntelligence] ClassifyDocumentCanParseBlankPage failing with InternalServerError
- [QUERY] Is there an API to list all assets under a collection?
- Parameter validation
- Azure.AI.OpenAI beta.13 broken for bring your own data HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-sdk-for-net.