RicoSuter/NJsonSchema

System.ObsoleteAttribute on properties

开放

#1,031 创建于 2019年7月3日

 (3 条评论) (0 个反应) (0 位负责人)C# (549 个派生)github user discovery
help wantedproject: NJsonSchema.Generationtype: bug

仓库指标

星标
 (1,581 个星标)
PR 合并指标
 (平均合并 39天 6小时) (30 天内合并 1 个 PR)

描述

We would like to prepare users of our API to a change regarding one model.

AFAICT, OpenAPI v3 added support for deprecation on property level (https://github.com/OAI/OpenAPI-Specification/issues/701, https://github.com/OAI/OpenAPI-Specification/issues/524).

As it seems, currently neither aspNetCoreToOpenApi nor openApiToCSharpClient support deprecation of a single property in a model (the generated spec / code is not affected by the attribute).

Should setting ignoreObsoleteProperties to true cause the property to be omitted from the generated spec?

贡献者指南