forked from loafle/openapi-generator-original
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