forked from loafle/openapi-generator-original
[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:
@@ -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
|
||||
|
||||
@@ -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{})
|
||||
}
|
||||
|
||||
@@ -23,5 +23,6 @@ type Pet struct {
|
||||
Tags []Tag `json:"tags,omitempty"`
|
||||
|
||||
// pet status in the store
|
||||
// Deprecated
|
||||
Status string `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user