Skip to content

no-legacy-usage

Full name
@azure-tools/typespec-azure-core/no-legacy-usage

Types, 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.

model Pet {
@Azure.ClientGenerator.Core.Legacy.flattenProperty
name: PetProperties;
}
model Page {
@nextLink nextLink: Azure.Core.Legacy.parameterizedNextLink<[
ListCertificateOptions.includePending
]>;
}
model Pet {
name: PetProperties;
}
model Page {
@nextLink nextLink: url;
}