-
Notifications
You must be signed in to change notification settings - Fork 849
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
Common Types for Managed Identities #14409
Comments
Hi @tombuildsstuff thanks for this issue This is a very good idea and we also have considered that. But it might not be ideal when we are actually trying to implement this.
Also there are concerns that if the service team chooses to define their own types, there are possibilities that they might change the definition in the future. For example they might add a property. Previously this is not a breaking change, but if we once identify this as a common-type by treating it as a duck type, this change will become a breaking change. @jhendrixMSFT thoughts? |
@jhendrixMSFT , do you have any thinking for this ask? |
@mikekistler is this something we can address with TypeSpec? |
There is no provision for this in TypeSpec, as best I am aware. |
Hi @tombuildsstuff, we deeply appreciate your input into this project. Regrettably, this issue has remained inactive for over 2 years, leading us to the decision to close it. We've implemented this policy to maintain the relevance of our issue queue and facilitate easier navigation for new contributors. If you still believe this topic requires attention, please feel free to create a new issue, referencing this one. Thank you for your understanding and ongoing support. |
Feature Request
Managed Identities are of a predefined type at this point in time (although they appear to be missing from the API contracts) - they're some combination of:
As such these could form a common type in
Azure/go-autorest
which would enable both code re-use for consumers of the SDK - and validation/generation errors for Swaggers which didn't match the common definitions (as seen in Azure/azure-rest-api-specs#13340). At present these are instead uniquely generated per-type and not necessarily complete (see that Github issue for one example) - so this could be consolidated since this is a common convention/defined type.In short: can the SDK expose common types for these, rather than a type (or multiple types) per service/struct?
Thanks!
The text was updated successfully, but these errors were encountered: