Skip to content

no-unknown

Full name
@azure-tools/typespec-azure-core/no-unknown

Azure services must not have properties of type unknown. All properties should have well-defined types to ensure proper serialization and client SDK generation.

model Widget {
name: unknown;
}

Use a specific type:

model Widget {
name: string;
}

Or use Record<string> for arbitrary key-value data:

model Widget {
metadata: Record<string>;
}