Ask a Question

mark a response body item as deprecated

silvermangb
New Member

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?

0 REPLIES 0
cancel
Showing results for 
Search instead for 
Did you mean: