-
Notifications
You must be signed in to change notification settings - Fork 41
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
resource model changes of generated SDK code based on TSP compared with swagger #104
Comments
Is this the exhaust list? |
Workaround: review all TSP ARM model and rename them with |
If we are going to support very old APIs, there are several possible patterns:
If client generation is sensitive to inheritance from common-types, thenthe right things likely is to generate the proper inheritance in this case and not use the resource templates, the template constraints use structural typing, not nominal typing, so any model with the right properties will work as in this playground |
@markcowl thanks for your solution for non-standard resource definition. Two concerns for the standard resource:
|
@tadelesh Those types also have an There are differences in the common types version, strictly around type formats (resourceId, uri, uuid), there have not, to date been any substantial differences other than these |
The solution we have discussed is:
|
By comparing diff about generated SDK between TSP and swagger, I find some model name changes:
Resource-> ArmResource
ProxyResource-> ProxyResourceBase
TrackedResource-> TrackedResourceBase
I think it is related with tsp definition of tyepsec-azure-resource-manager
The text was updated successfully, but these errors were encountered: