Diagnostics
The following diagnostics can be reported by this library.
| Code | Severity | Description |
|---|---|---|
@typespec/openapi/default-response-with-status-code | warning | @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-tag | error | |
@typespec/openapi/duplicate-type-name | error | |
@typespec/openapi/invalid-extension-key | error | |
@typespec/openapi/mixed-tag-metadata-form | error | Cannot 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-url | error | |
@typespec/openapi/tag-metadata-array-with-metadata-arg | error | When 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-service | error |