arm-resource-patch
@azure-tools/typespec-azure-resource-manager/arm-resource-patchValidate ARM PATCH operations. The request body of a PATCH must be a model with a subset of the resource properties. The PATCH body must not contain properties that do not exist on the resource.
โ Incorrect
Section titled โโ Incorrectโmodel FooResource is TrackedResource<FooProperties> { ...ResourceNameParameter<FooResource>;}
model MyBadPatch { name?: string; ...Foundations.ArmTagsProperty; blah?: string; // does not exist on FooResource}โ Correct
Section titled โโ Correctโmodel FooResource is TrackedResource<FooProperties> { ...ResourceNameParameter<FooResource>;}
model FooPatch { name?: string; ...Foundations.ArmTagsProperty; properties?: FooProperties;}