Skip to content

unsupported-kind

Id
@azure-tools/typespec-client-generator-core/unsupported-kind

Severity: warning

This diagnostic is issued when TCGC encounters a TypeSpec type kind that it does not know how to convert into an SDK type. The value is treated as an unknown SDK type.

  • Area: SDK type conversion. Generation continues with an unknown SDK type placeholder for the unsupported TypeSpec kind.
  • Not affected: Other supported TypeSpec types are converted normally.

TCGC reports:

Unsupported kind TemplateParameter

Replace the unsupported construct with a supported model, scalar, enum, union, operation, or model property shape.

Suppress this warning only if the unsupported TypeSpec kind is not part of the public generated SDK surface or an unknown SDK type is acceptable.

#suppress "@azure-tools/typespec-client-generator-core/unsupported-kind" "unsupported kind is not emitted"