From 04fe0767df1b2dbc6d4e49d0d22b6ea3eb2ae233 Mon Sep 17 00:00:00 2001 From: maliming Date: Wed, 18 Nov 2020 14:38:46 +0800 Subject: [PATCH] Make httpMethod can be nullable. Resolve #6208 https://github.com/abpframework/abp/blob/7cce909750fad5d85a057e632555763a75e143dc/framework/src/Volo.Abp.Http/Volo/Abp/Http/ProxyScripting/Generators/JQuery/JQueryProxyScriptGenerator.cs#L129 --- .../Volo/Abp/Http/Modeling/ActionApiDescriptionModel.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/framework/src/Volo.Abp.Http/Volo/Abp/Http/Modeling/ActionApiDescriptionModel.cs b/framework/src/Volo.Abp.Http/Volo/Abp/Http/Modeling/ActionApiDescriptionModel.cs index fffd9d14d5..1ca0c28aa1 100644 --- a/framework/src/Volo.Abp.Http/Volo/Abp/Http/Modeling/ActionApiDescriptionModel.cs +++ b/framework/src/Volo.Abp.Http/Volo/Abp/Http/Modeling/ActionApiDescriptionModel.cs @@ -31,12 +31,11 @@ namespace Volo.Abp.Http.Modeling } - public static ActionApiDescriptionModel Create([NotNull] string uniqueName, [NotNull] MethodInfo method, [NotNull] string url, [NotNull] string httpMethod, [NotNull] IList supportedVersions) + public static ActionApiDescriptionModel Create([NotNull] string uniqueName, [NotNull] MethodInfo method, [NotNull] string url, [CanBeNull] string httpMethod, [NotNull] IList supportedVersions) { Check.NotNull(uniqueName, nameof(uniqueName)); Check.NotNull(method, nameof(method)); Check.NotNull(url, nameof(url)); - Check.NotNull(httpMethod, nameof(httpMethod)); Check.NotNull(supportedVersions, nameof(supportedVersions)); return new ActionApiDescriptionModel