Forum Discussion

silvermangb's avatar
silvermangb
New Member
2 years ago

mark a response body item as deprecated

In GO code, a struct S is the response body for an API, such as

 

type struct Response {

   item1 string `json...

   item2 string `json ...

}

 

Say, item1 is deprecated. It is still present in the API response body but will be removed in the next release.

How can item1 be marked as deprecated in the generated swagger documentation?

No RepliesBe the first to reply