arm-no-record
@azure-tools/typespec-azure-resource-manager/arm-no-record
ARM requires Resource provider teams to define types explicitly. This is to ensure good customer experience in terms of the discoverability of concrete type definitions.
❌ Incorrect
Section titled “❌ Incorrect”model Address { address: Record<string>; city: string; state: string;}
âś… Correct
Section titled “✅ Correct”model Address { street: string; city: string; state: string; country: string; postalCode: string;}
❌ Incorrect
Section titled “❌ Incorrect”model Address is Record<string>;
âś… Correct
Section titled “✅ Correct”model Address { street: string; city: string; state: string; country: string; postalCode: string;}
❌ Incorrect
Section titled “❌ Incorrect”model Address extends Record<string> {}
âś… Correct
Section titled “✅ Correct”model Address { street: string; city: string; state: string; country: string; postalCode: string;}