Description
OpenAPI 3.0 allows marking operations, parameters, and schemas with deprecated: true. Currently this flag is ignored — generated code has no indication that something is deprecated. The generator should add Kotlin's @Deprecated annotation to affected classes and functions.
Acceptance criteria
Description
OpenAPI 3.0 allows marking operations, parameters, and schemas with
deprecated: true. Currently this flag is ignored — generated code has no indication that something is deprecated. The generator should add Kotlin's@Deprecatedannotation to affected classes and functions.Acceptance criteria
SpecParserextracts thedeprecatedflag from operations and schemasClientGeneratoradds@Deprecatedannotation to generated suspend functions for deprecated operationsModelGeneratoradds@Deprecatedannotation to generated data classes for deprecated schemas@Deprecatedon the corresponding function parameter