-
Notifications
You must be signed in to change notification settings - Fork 46
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
[Bug] ARM Library: Patch does not generate Updatable model for complex envelope types #383
Comments
Here is one solution that teams can use until this is fixed |
Here is a discussion about |
Hi @markcowl thank you for the solution, I have tried in the PR https://github.com/Azure/azure-rest-api-specs-pr/pull/18316. Unfortunately without luck. I have two properties May I ask for further suggestions? |
@petrkotas sent a PR to your branch with a fix |
Fixed. |
Describe the bug
Seeing one onboarding team hitting PatchBodyParametersSchema lintDiff. The root cause is this resource includes ManagedServiceIdentity from common type definition which type property is marked as required. Our auto update model generation does not seem to extend to the common types but still $ref to its original definition. As original definition contains
required
properties thus triggering this warning.To Reproduce
Playground
Expected behavior
In update model, as we are starting to master the properties in TypeSpec models, we should stop generating $ref to original common definitions but generate an update model locally.
The text was updated successfully, but these errors were encountered: