@@ -29,48 +29,48 @@ const (
2929 extOapiCodegenOnlyHonourGoName = "x-oapi-codegen-only-honour-go-name"
3030)
3131
32- func extString (extPropValue interface {} ) (string , error ) {
32+ func extString (extPropValue any ) (string , error ) {
3333 str , ok := extPropValue .(string )
3434 if ! ok {
3535 return "" , fmt .Errorf ("failed to convert type: %T" , extPropValue )
3636 }
3737 return str , nil
3838}
3939
40- func extTypeName (extPropValue interface {} ) (string , error ) {
40+ func extTypeName (extPropValue any ) (string , error ) {
4141 return extString (extPropValue )
4242}
4343
44- func extParsePropGoTypeSkipOptionalPointer (extPropValue interface {} ) (bool , error ) {
44+ func extParsePropGoTypeSkipOptionalPointer (extPropValue any ) (bool , error ) {
4545 goTypeSkipOptionalPointer , ok := extPropValue .(bool )
4646 if ! ok {
4747 return false , fmt .Errorf ("failed to convert type: %T" , extPropValue )
4848 }
4949 return goTypeSkipOptionalPointer , nil
5050}
5151
52- func extParseGoFieldName (extPropValue interface {} ) (string , error ) {
52+ func extParseGoFieldName (extPropValue any ) (string , error ) {
5353 return extString (extPropValue )
5454}
5555
56- func extParseOmitEmpty (extPropValue interface {} ) (bool , error ) {
56+ func extParseOmitEmpty (extPropValue any ) (bool , error ) {
5757 omitEmpty , ok := extPropValue .(bool )
5858 if ! ok {
5959 return false , fmt .Errorf ("failed to convert type: %T" , extPropValue )
6060 }
6161 return omitEmpty , nil
6262}
6363
64- func extParseOmitZero (extPropValue interface {} ) (bool , error ) {
64+ func extParseOmitZero (extPropValue any ) (bool , error ) {
6565 omitZero , ok := extPropValue .(bool )
6666 if ! ok {
6767 return false , fmt .Errorf ("failed to convert type: %T" , extPropValue )
6868 }
6969 return omitZero , nil
7070}
7171
72- func extExtraTags (extPropValue interface {} ) (map [string ]string , error ) {
73- tagsI , ok := extPropValue .(map [string ]interface {} )
72+ func extExtraTags (extPropValue any ) (map [string ]string , error ) {
73+ tagsI , ok := extPropValue .(map [string ]any )
7474 if ! ok {
7575 return nil , fmt .Errorf ("failed to convert type: %T" , extPropValue )
7676 }
@@ -85,16 +85,16 @@ func extExtraTags(extPropValue interface{}) (map[string]string, error) {
8585 return tags , nil
8686}
8787
88- func extParseGoJsonIgnore (extPropValue interface {} ) (bool , error ) {
88+ func extParseGoJsonIgnore (extPropValue any ) (bool , error ) {
8989 goJsonIgnore , ok := extPropValue .(bool )
9090 if ! ok {
9191 return false , fmt .Errorf ("failed to convert type: %T" , extPropValue )
9292 }
9393 return goJsonIgnore , nil
9494}
9595
96- func extParseEnumVarNames (extPropValue interface {} ) ([]string , error ) {
97- namesI , ok := extPropValue .([]interface {} )
96+ func extParseEnumVarNames (extPropValue any ) ([]string , error ) {
97+ namesI , ok := extPropValue .([]any )
9898 if ! ok {
9999 return nil , fmt .Errorf ("failed to convert type: %T" , extPropValue )
100100 }
@@ -109,11 +109,11 @@ func extParseEnumVarNames(extPropValue interface{}) ([]string, error) {
109109 return names , nil
110110}
111111
112- func extParseDeprecationReason (extPropValue interface {} ) (string , error ) {
112+ func extParseDeprecationReason (extPropValue any ) (string , error ) {
113113 return extString (extPropValue )
114114}
115115
116- func extParseOapiCodegenOnlyHonourGoName (extPropValue interface {} ) (bool , error ) {
116+ func extParseOapiCodegenOnlyHonourGoName (extPropValue any ) (bool , error ) {
117117 onlyHonourGoName , ok := extPropValue .(bool )
118118 if ! ok {
119119 return false , fmt .Errorf ("failed to convert type: %T" , extPropValue )
0 commit comments