Browse Source
Use parameterInfo.Name when modelNameProvider.Name is null.
pull/4700/head
maliming
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/AspNetCore/Mvc/AspNetCoreApiDescriptionModelProvider.cs
|
|
@ -270,7 +270,7 @@ namespace Volo.Abp.AspNetCore.Mvc |
|
|
return parameterInfo.Name; |
|
|
return parameterInfo.Name; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return modelNameProvider.Name; |
|
|
return modelNameProvider.Name ?? parameterInfo.Name; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private static string GetRootPath([NotNull] Type controllerType, [CanBeNull] ConventionalControllerSetting setting) |
|
|
private static string GetRootPath([NotNull] Type controllerType, [CanBeNull] ConventionalControllerSetting setting) |
|
|
|