no-empty-model
@azure-tools/typespec-azure-resource-manager/no-empty-model
ARM Properties with type:object that donβt reference a model definition are not allowed. ARM doesnβt allow generic type definitions as this leads to bad customer experience.
β Incorrect
model Information { address: {};}
β Incorrect
model Empty {}
β Correct
model Information { address: Address;}
model Address { street: string; city: string; state: string; country: string; postalCode: string;}
β Correct
model Information { street: string; city: string; state: string; country: string; postalCode: string;}