mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-04 09:46:15 +00:00
Implement GetActualInstanceValue method (#20663)
This commit is contained in:
@@ -143,6 +143,10 @@ func typeCheckParameter(obj interface{}, expected string, name string) error {
|
||||
|
||||
func parameterValueToString( obj interface{}, key string ) string {
|
||||
if reflect.TypeOf(obj).Kind() != reflect.Ptr {
|
||||
if actualObj, ok := obj.(interface{ GetActualInstanceValue() interface{} }); ok {
|
||||
return fmt.Sprintf("%v", actualObj.GetActualInstanceValue())
|
||||
}
|
||||
|
||||
return fmt.Sprintf("%v", obj)
|
||||
}
|
||||
var param,ok = obj.(MappedNullable)
|
||||
|
||||
Reference in New Issue
Block a user