bad-record-type
@azure-tools/typespec-azure-core/bad-record-typeUse of Record<X> should be limited in Azure services.
- It is recommended to use
Record<string>instead ofRecord<unknown> - Specifying a type with Record and some known properties is also not recommended.
โ Incorrect
Section titled โโ Incorrectโmodel Pet { data: Record<unknown>;}model Pet is Record<string> { name: string;}โ Correct
Section titled โโ Correctโmodel Pet { tags: Record<string>;}model Pet is Record<string>;