RicoSuter/NJsonSchema

System.ObsoleteAttribute on properties

Open

#1,031 建立於 2019年7月3日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)C# (550 fork)github user discovery
help wantedproject: NJsonSchema.Generationtype: bug

倉庫指標

Star
 (1,578 star)
PR 合併指標
 (30 天內沒有已合併 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?

貢獻者指南