Closed skywing918 closed 3 months ago
{The problematic object} failed to {describe the problem}.
import "@typespec/http"; import "@typespec/openapi"; using TypeSpec.Http; using OpenAPI; @service @extension("x-custom", "foo") @server("https://test.contoso.com", "test domain") namespace Extensions;
openapi: 3.0.0 info: title: (title) version: 0.0.0 tags: [] paths: {} components: {} servers: - url: https://test.contoso.com description: test domain variables: {}
https://spec.openapis.org/oas/v3.0.0#server-object
openapi: 3.0.0 info: title: (title) version: 0.0.0 tags: [] paths: {} components: {} servers: - url: https://test.contoso.com description: test domain x-custom: foo variables: {}
git clone https://github.com/skywing918/typespec-workaround.git
tsp compile extension-server.tsp
/tsp-output/@typespec/openapi3
Dup of https://github.com/microsoft/typespec/issues/3925
Describe the bug
{The problematic object} failed to {describe the problem}.
TSP
Actual Specification
Expected Specification
https://spec.openapis.org/oas/v3.0.0#server-object
Reproduction
git clone https://github.com/skywing918/typespec-workaround.git
tsp compile extension-server.tsp
/tsp-output/@typespec/openapi3
to get the resultChecklist