@@ -14,9 +14,9 @@ type Validation struct { //nolint: errname
1414 code int32
1515 Name string
1616 In string
17- Value interface {}
17+ Value any
1818 message string
19- Values []interface {}
19+ Values []any
2020}
2121
2222func (e * Validation ) Error () string {
@@ -30,7 +30,7 @@ func (e *Validation) Code() int32 {
3030
3131// MarshalJSON implements the JSON encoding interface
3232func (e Validation ) MarshalJSON () ([]byte , error ) {
33- return json .Marshal (map [string ]interface {} {
33+ return json .Marshal (map [string ]any {
3434 "code" : e .code ,
3535 "message" : e .message ,
3636 "in" : e .In ,
@@ -61,7 +61,7 @@ const (
6161
6262// InvalidContentType error for an invalid content type
6363func InvalidContentType (value string , allowed []string ) * Validation {
64- values := make ([]interface {} , 0 , len (allowed ))
64+ values := make ([]any , 0 , len (allowed ))
6565 for _ , v := range allowed {
6666 values = append (values , v )
6767 }
@@ -77,7 +77,7 @@ func InvalidContentType(value string, allowed []string) *Validation {
7777
7878// InvalidResponseFormat error for an unacceptable response format request
7979func InvalidResponseFormat (value string , allowed []string ) * Validation {
80- values := make ([]interface {} , 0 , len (allowed ))
80+ values := make ([]any , 0 , len (allowed ))
8181 for _ , v := range allowed {
8282 values = append (values , v )
8383 }
0 commit comments