no-legacy-usage
@azure-tools/typespec-azure-core/no-legacy-usageTypes, decorators and other constructs from located under a .Legacy namespace are considered legacy and should not be used in new code. The only acceptable usage is for brownfield services which have their existing pattern grandfathered in.
โ Incorrect
Section titled โโ Incorrectโmodel Pet { @Azure.ClientGenerator.Core.Legacy.flattenProperty name: PetProperties;}model Page { @nextLink nextLink: Azure.Core.Legacy.parameterizedNextLink<[ ListCertificateOptions.includePending ]>;}โ Correct
Section titled โโ Correctโmodel Pet { name: PetProperties;}model Page { @nextLink nextLink: url;}