Skip to content
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

[Lint] report warning if resource type key is not read-only in ResourceCreateOrReplace template #2352

Open
MaryGao opened this issue Mar 11, 2025 · 0 comments
Labels
feature New feature or request lib:azure-resource-manager Issues for @azure-tools/typespec-azure-core library
Milestone

Comments

@MaryGao
Copy link
Member

MaryGao commented Mar 11, 2025

As we offlined discussed this is a real case in contentsafety , for Azure template ResourceCreateOrReplace it would lift the key properties to method level as path parameters, so there would exist duplications between path paramter and request body property and it's better to add a linter to limit the key property as read-only so that we could guide spec author without duplications.

@markcowl markcowl added this to the Backlog milestone Mar 19, 2025
@markcowl markcowl added the lib:azure-resource-manager Issues for @azure-tools/typespec-azure-core library label Mar 19, 2025
@markcowl markcowl added the feature New feature or request label Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request lib:azure-resource-manager Issues for @azure-tools/typespec-azure-core library
Projects
None yet
Development

No branches or pull requests

2 participants