You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The OpenAPI spec supports a deprecated flag on schema properties:
UserResponse:
type: objectproperties:
Nme:
type: stringdescription: The name of the userdeprecated: trueName:
type: stringdescription: The name of the userId:
type: stringdescription: The id of the user (GUID)
It would be great if the OpenApiPropertyAttribute had a parameter to support this. For example:
classUserResponse{[OpenApiProperty(Description ="The name of the user", Deprecated =true)]publicstringNam{get;set;}[OpenApiProperty(Description ="The name of the user")]publicstringName{get;set;}[OpenApiProperty(Description ="The id of the user (GUID)")]publicstringId{get;set;}}
The text was updated successfully, but these errors were encountered:
The OpenAPI spec supports a
deprecated
flag on schema properties:It would be great if the
OpenApiPropertyAttribute
had a parameter to support this. For example:The text was updated successfully, but these errors were encountered: