-
Notifications
You must be signed in to change notification settings - Fork 177
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
[LintDiff][False positive] ProvisioningStateMustBeReadOnly #6191
Comments
Task 23293566: [LintDiff][False positive] ProvisioningStateMustBeReadOnly #6191 |
After investigation this turned out not to be a false positive. It is accurately reporting that the provisioningState property is not marked as readOnly. The reason why the property is not being detected as readOnly is because the readOnly property is placed on the envelope property and not on the leaf definition. Envelope - "provisioningState": { Leaf def The recommendation here is to ask the author to update the swagger and mention the readOnly property inline with the leaf definition |
This will need a change in the Typespec generation of swagger. I am working with Mark Cowlishaw on this issue. Once typespec fixes this issue, we can re-enable the linter rule again for this important check |
Referenced this comment from: |
I think this can be closed. The solution was to add |
The rule ProvisioningStateMustBeReadOnly has been disabled by this PR:
Because @bdefoy was stating it is known to cause issues (May 4th, 3:51 PM PST, in the Teams chat)
We need to re-evaluate and re-enable this rule.
The text was updated successfully, but these errors were encountered: