You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import "@typespec/http";
using TypeSpec.Http;
@service
@useAuth({})
namespace Security;
Internal Compiler Error
Internal Compiler Error
ExternalError: Emitter "@typespec/openapi3" crashed! This is a bug.
Please file an issue at https://github.com/microsoft/typespec/issues
TypeError: Cannot read properties of undefined (reading 'add')
at getOpenAPI3SchemeInternal (https://typespec.blob.core.windows.net/pkgs/@typespec/openapi3/0.58.0/index.js:7080:29)
at getOpenAPI3Scheme (https://typespec.blob.core.windows.net/pkgs/@typespec/openapi3/0.58.0/index.js:7046:24)
at getOpenAPISecuritySchemes (https://typespec.blob.core.windows.net/pkgs/@typespec/openapi3/0.58.0/index.js:7010:28)
at initializeEmitter (https://typespec.blob.core.windows.net/pkgs/@typespec/openapi3/0.58.0/index.js:5778:33)
at getOpenApiFromVersion (https://typespec.blob.core.windows.net/pkgs/@typespec/openapi3/0.58.0/index.js:6149:13)
at getProjectedOpenAPIDocument (https://typespec.blob.core.windows.net/pkgs/@typespec/openapi3/0.58.0/index.js:5931:36)
at getOpenAPI (https://typespec.blob.core.windows.net/pkgs/@typespec/openapi3/0.58.0/index.js:5882:40)
at Object.emitOpenAPI (https://typespec.blob.core.windows.net/pkgs/@typespec/openapi3/0.58.0/index.js:5731:32)
at Object.$onEmit [as emitFunction] (https://typespec.blob.core.windows.net/pkgs/@typespec/openapi3/0.58.0/index.js:5650:19)
at runEmitter (https://typespec.blob.core.windows.net/pkgs/@typespec/compiler/0.58.1/index.js:6512:27)
--------------------------------------------------
Library Version 0.58.0
TypeSpec Compiler Version 0.58.1
--------------------------------------------------
OpenAPI 3 Emitter crash on @useAuth({}).
seems the diagnostics is not initial before add item.
fix: #4097
---------
Co-authored-by: Kyle Zhang <v-zhanh@microsoft.com>
Co-authored-by: Mark Cowlishaw <markcowl@microsoft.com>
Co-authored-by: Timothee Guerin <timothee.guerin@outlook.com>
Co-authored-by: Christopher Radek <14189820+chrisradek@users.noreply.github.com>
OpenAPI 3 Emitter crash on @useAuth({}).
seems the diagnostics is not initial before add item.
fix: microsoft#4097
---------
Co-authored-by: Kyle Zhang <v-zhanh@microsoft.com>
Co-authored-by: Mark Cowlishaw <markcowl@microsoft.com>
Co-authored-by: Timothee Guerin <timothee.guerin@outlook.com>
Co-authored-by: Christopher Radek <14189820+chrisradek@users.noreply.github.com>
sarangan12
pushed a commit
to sarangan12/typespec
that referenced
this issue
Sep 16, 2024
OpenAPI 3 Emitter crash on @useAuth({}).
seems the diagnostics is not initial before add item.
fix: microsoft#4097
---------
Co-authored-by: Kyle Zhang <v-zhanh@microsoft.com>
Co-authored-by: Mark Cowlishaw <markcowl@microsoft.com>
Co-authored-by: Timothee Guerin <timothee.guerin@outlook.com>
Co-authored-by: Christopher Radek <14189820+chrisradek@users.noreply.github.com>
Describe the bug
OpenAPI 3 Emitter crash on @useAuth({}).
TSP
Internal Compiler Error
Reproduction
Playground
Checklist
The text was updated successfully, but these errors were encountered: