Skip to content

duplicate-example-file

Id
@azure-tools/typespec-client-generator-core/duplicate-example-file

Severity: error

This diagnostic is issued when two example files for the same operationId use the same title.

  • Area: Example file indexing. Blocks unambiguous loading of examples for a single operation because two files share the same operationId and title key.
  • Not affected: The service definition and generated SDK type shapes are unchanged.

TCGC reports:

Example file get.json uses duplicate title 'get' for operationId 'get'

Give each example a unique title within the same operationId.