Skip to content

Diagnostics

The following diagnostics can be reported by this library.

CodeSeverityDescription
@typespec/openapi/default-response-with-status-codewarning@defaultResponse should not be used on a model that already has a status code defined. The status code will be ignored in favor of the default response.
@typespec/openapi/duplicate-tagerror
@typespec/openapi/duplicate-type-nameerror
@typespec/openapi/invalid-extension-keyerror
@typespec/openapi/mixed-tag-metadata-formerrorCannot mix the array form and the inline form of @tagMetadata on the same namespace. Use either @tagMetadata(#[…]) or multiple @tagMetadata(β€œname”, #{…}) calls, not both.
@typespec/openapi/not-urlerror
@typespec/openapi/tag-metadata-array-with-metadata-argerrorWhen using the array form of @tagMetadata, the second argument (tagMetadata) must not be provided. Include all tag metadata inside the array elements.
@typespec/openapi/tag-metadata-target-serviceerror