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
@info decorator failed to exclude unallow keys, it only allow fixed fields and start with "x-".
##TSP
import "@typespec/openapi";
import "@typespec/openapi3";
using TypeSpec.OpenAPI;
@info({
unallowKey: {},
})
@service({
title: "My service",
})
namespace PetStore;
Actual Specification
openapi: 3.0.0info:
title: My serviceunallowKey: {}version: 0.0.0tags: []paths: {}components: {}
Expected Specification
openapi: 3.0.0info:
title: My serviceversion: 0.0.0tags: []paths: {}components: {}
Reproduction
. git clone https://github.com/skywing918/typespec-workaround.git
2. tsp compile unallowkey.tsp
3. Open /tsp-output/@typespec/openapi3 to get the result
This was something we didn't do exactly by design but changing it would be breaking. We have also considered removing the restriction of @extension to allow any keys to provide support for any things that we don't have a dedicated decorator for.
Describe the bug
@info decorator failed to exclude unallow keys, it only allow fixed fields and start with "x-".
##TSP
Actual Specification
Expected Specification
Reproduction
.
git clone https://github.com/skywing918/typespec-workaround.git
2.
tsp compile unallowkey.tsp
3. Open
/tsp-output/@typespec/openapi3
to get the resultChecklist
The text was updated successfully, but these errors were encountered: