mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 06:11:51 +08:00

It's `message`, not `msg`. It's been fixed for a while here: 9ef6983612/scripts/pull-schema.sh (L46-L49)
I've also reflected the change in the tests
23 lines
396 B
Go
23 lines
396 B
Go
package definitions
|
|
|
|
import "github.com/grafana/grafana/pkg/apimachinery/errutil"
|
|
|
|
// swagger:model
|
|
type NotFound struct{}
|
|
|
|
// swagger:model
|
|
type Ack struct{}
|
|
|
|
// swagger:model
|
|
type ValidationError struct {
|
|
// example: error message
|
|
Message string `json:"message"`
|
|
}
|
|
|
|
// swagger:model
|
|
type ForbiddenError struct {
|
|
// The response message
|
|
// in: body
|
|
Body errutil.PublicError `json:"body"`
|
|
}
|