Skip to content

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

Open
@MaryGao

Description

@MaryGao

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or requestlib:azure-resource-managerIssues for @azure-tools/typespec-azure-core library

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions