mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-25 21:09:05 +01:00
Move swagger comment from TagJobApiRequest to Tag
This commit is contained in:
parent
24f374ed36
commit
9f9462496a
@ -112,13 +112,14 @@ type ErrorResponse struct {
|
||||
Error string `json:"error"` // Error Message
|
||||
}
|
||||
|
||||
// Tag model
|
||||
// @Description Defines a tag using name and type.
|
||||
type Tag struct {
|
||||
// Tag 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
|
||||
|
||||
func handleError(err error, statusCode int, rw http.ResponseWriter) {
|
||||
|
Loading…
Reference in New Issue
Block a user