-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[MPG] models under xxUpdateProperties
are not generated with Update
suffix
#2688
Comments
seems typespec-autorest make all models in PATCH adding a Also see OperationListResult -> PagedOperation And some additional setters. Should we enable |
Seems like a bug in swagger file: In common model, the property is @doc("Percent of the operation that is complete.")
@minValue(0)
@maxValue(100)
percentComplete?: int32; Though in swagger, it's number, and our codegen will treat it as float/decimal: "percentComplete": {
"description": "Percent of the operation that is complete.",
"type": "number",
"minimum": 0,
"maximum": 100
}, Guess in swagger, it should be |
Ok, then that is probably the reason TypeSpec validation fails. |
I don't think we should ever generate with "Updated" suffix. If we GA with TypeSpec, we do not need to worry about that. It could be problem if service is TypeSpec, but we GA it with Swagger (AKS fleet?). |
Default |
DeviceRegistry diff: https://apiview.dev/Assemblies/Review/90da387f53324bba89095f644611247c/e075fa8b740542859e8723c02d2166aa?diffRevisionId=3fce795412de47d78364048e06ee587f#com.azure.resourcemanager.deviceregistry.models.TransportAuthenticationUpdate
Swagger generates additional
xxUpdate
classes, e.g.TransportAuthenticationUpdate
., while tsp doesn't.
The text was updated successfully, but these errors were encountered: