-
Notifications
You must be signed in to change notification settings - Fork 351
[Bug]: tsp-openapi3: "deprecated" decorators not imported #4453
Copy link
Copy link
Labels
featureNew feature or requestNew feature or requestopenapi3:converterIssues for @typespec/openapi3 openapi to typespec converterIssues for @typespec/openapi3 openapi to typespec convertertriaged:core
Milestone
Description
Describe the bug
OpenAPI that declares @deprecated does not result in #deprecated on import.
detected as part of the "TypeSpec for Sefaria" hack.
Reproduction
Easiest way to see is to round-trip this model:
model Foo {
#deprecated "omit"
bar?: string
}
TSP -> OpenAPI: Playground
Result from importing the OpenAPI output: Playground
model Foo {
bar?: string;
}
Checklist
- Follow our Code of Conduct
- Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
Metadata
Metadata
Labels
featureNew feature or requestNew feature or requestopenapi3:converterIssues for @typespec/openapi3 openapi to typespec converterIssues for @typespec/openapi3 openapi to typespec convertertriaged:core