Add linter rule for anonymous models #431
Labels
breaking-change
A change that might cause specs or code to break
feature
New feature or request
lib:azure-core
Issues for @azure-tools/typespec-azure-core library
Milestone
It would be great to have a linter rule call out anonymous models to help service teams avoid them as they define their spec, since this causes issues with the emitters later on. Based on this previous issue https://github.com/Azure/typespec-azure-pr/issues/2367 seems it is hard to catch all cases of anonymous models and this linter rule cannot warn for every case, but it would be useful to try to catch common scenarios where anonymous models cause issues for emitters, such as inline anonymous models passed into the standard templates.
The text was updated successfully, but these errors were encountered: