Move swagger comment from TagJobApiRequest to Tag

This commit is contained in:
Christoph Kluge 2022-09-16 13:18:50 +02:00
parent 24f374ed36
commit 9f9462496a

View File

@ -112,13 +112,14 @@ type ErrorResponse struct {
Error string `json:"error"` // Error Message Error string `json:"error"` // Error Message
} }
// Tag model
// @Description Defines a tag using name and type.
type Tag struct { type Tag struct {
// Tag Type
Type string `json:"type"` Type string `json:"type"`
Name string `json:"name"` Name string `json:"name"` // Tag Name
} }
// TagJobApiRequest model
// @Description Array of tag-objects for request payload
type TagJobApiRequest []*Tag type TagJobApiRequest []*Tag
func handleError(err error, statusCode int, rw http.ResponseWriter) { func handleError(err error, statusCode int, rw http.ResponseWriter) {