[go] More idiomatic godoc comments (#10044)

* [go] More idiomatic godoc comments

* [go] Mark deprecated fields and functions

* [go] Minor mustache readability/consistency fixes

* [go] Mark deprecated operation parameters

* [go] Deprecate a petstore component property for testing

* [go] Apply deprecated godoc in Go servers also
This commit is contained in:
Nathan Baulch
2021-08-03 19:11:16 +10:00
committed by GitHub
parent 4210b41f84
commit c1c5775271
178 changed files with 2344 additions and 2169 deletions

View File

@@ -76,7 +76,8 @@ paths:
description: Multiple status values can be provided with comma separated strings
operationId: findPetsByStatus
parameters:
- description: Status values that need to be considered for filter
- deprecated: true
description: Status values that need to be considered for filter
explode: false
in: query
name: status
@@ -759,6 +760,7 @@ components:
name: tag
wrapped: true
status:
deprecated: true
description: pet status in the store
enum:
- available

View File

@@ -31,6 +31,7 @@ func FindPetsByStatus(c *gin.Context) {
}
// FindPetsByTags - Finds Pets by tags
// Deprecated
func FindPetsByTags(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{})
}

View File

@@ -23,5 +23,6 @@ type Pet struct {
Tags []Tag `json:"tags,omitempty"`
// pet status in the store
// Deprecated
Status string `json:"status,omitempty"`
}