Skip to content

[Bug]: tsp-openapi3: "deprecated" decorators not imported #4453

@Arithmomaniac

Description

@Arithmomaniac

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

Metadata

Metadata

Assignees

Labels

featureNew feature or requestopenapi3:converterIssues for @typespec/openapi3 openapi to typespec convertertriaged:core

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions