Skip to content

unsupported-generic-decorator-arg-type

Id
@azure-tools/typespec-client-generator-core/unsupported-generic-decorator-arg-type

Severity: warning

This diagnostic is issued when TCGC tries to parse a generic decorator argument whose TypeSpec kind is unsupported.

  • Area: Decorator metadata emitted for SDK types. Generation continues, but the unsupported decorator argument is omitted from the metadata available to emitters.
  • Not affected: The decorator’s compile-time effect on the TypeSpec program has already occurred.

TCGC reports:

Can not parse the arg type for decorator "@service".

Use supported decorator argument values such as strings, numbers, booleans, values, or enum members.

Suppress this warning only if the decorator argument metadata is optional for the target emitter and may be safely omitted.

#suppress "@azure-tools/typespec-client-generator-core/unsupported-generic-decorator-arg-type" "decorator metadata not needed"