.net中swagger忽略某些字段

需要忽略的字段上用特性

[System.Text.Json.Serialization.JsonIgnore]

例如:

原文地址:https://www.cnblogs.com/qingfenglin/p/14062038.html