invalid-extension-key
@typespec/openapi/invalid-extension-keyThis diagnostic is issued by the @extension decorator when the extension key does not start with x- as required by the OpenAPI v3 specification.
How to fix
Section titled “How to fix”Change the extension name to start with x-.
Incorrect
Section titled “Incorrect”@extension("invalid-name", "value")model User { id: string;}Correct
Section titled “Correct”@extension("x-valid-name", "value")model User { id: string;}