add option "use-read-only-status-schema" to fix ProvisioningStateMustBeReadOnly bug;
The bug is mentioned here https://github.com/Azure/azure-rest-api-specs/discussions/29471 and the suggested walkaround is set option "use-read-only-status-schema" to true.
Canonical emitter doesn't have this option. So add this option to the emitter.
add isArmCommonType check to avoid decorator validation in canonical emitter
Canonical emitter will generate warning when @typeChangedFrom decorator is used. To make sure this not apply to common type, add isArmCommonType check
This PR addressed 2 issues:
add option "use-read-only-status-schema" to fix ProvisioningStateMustBeReadOnly bug; The bug is mentioned here https://github.com/Azure/azure-rest-api-specs/discussions/29471 and the suggested walkaround is set option "use-read-only-status-schema" to true. Canonical emitter doesn't have this option. So add this option to the emitter.![image](https://github.com/Azure/typespec-azure/assets/8683976/1e12d103-7710-4d92-8458-da8a1c98ae66)
add isArmCommonType check to avoid decorator validation in canonical emitter Canonical emitter will generate warning when @typeChangedFrom decorator is used. To make sure this not apply to common type, add isArmCommonType check