From 49191f4d5695764e74ee1c78221a4ed09a5763a2 Mon Sep 17 00:00:00 2001 From: TeBeCo Date: Wed, 16 Oct 2019 17:59:51 +0200 Subject: [PATCH] Make ApiDescriptionActionData public (#15023) * Make ApiDescriptionActionData public Fixes https://github.com/aspnet/AspNetCore/issues/14954 --- .../Mvc.Core/ref/Microsoft.AspNetCore.Mvc.Core.netcoreapp.cs | 5 +++++ src/Mvc/Mvc.Core/src/ApiExplorer/ApiDescriptionActionData.cs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Mvc/Mvc.Core/ref/Microsoft.AspNetCore.Mvc.Core.netcoreapp.cs b/src/Mvc/Mvc.Core/ref/Microsoft.AspNetCore.Mvc.Core.netcoreapp.cs index 5407eaa4dc..5da8649bbc 100644 --- a/src/Mvc/Mvc.Core/ref/Microsoft.AspNetCore.Mvc.Core.netcoreapp.cs +++ b/src/Mvc/Mvc.Core/ref/Microsoft.AspNetCore.Mvc.Core.netcoreapp.cs @@ -137,6 +137,11 @@ namespace Microsoft.AspNetCore.Mvc public ApiConventionTypeAttribute(System.Type conventionType) { } public System.Type ConventionType { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } } } + public partial class ApiDescriptionActionData + { + public ApiDescriptionActionData() { } + public string GroupName { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } [System.Runtime.CompilerServices.CompilerGeneratedAttribute]set { } } + } [System.AttributeUsageAttribute(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)] public partial class ApiExplorerSettingsAttribute : System.Attribute, Microsoft.AspNetCore.Mvc.ApiExplorer.IApiDescriptionGroupNameProvider, Microsoft.AspNetCore.Mvc.ApiExplorer.IApiDescriptionVisibilityProvider { diff --git a/src/Mvc/Mvc.Core/src/ApiExplorer/ApiDescriptionActionData.cs b/src/Mvc/Mvc.Core/src/ApiExplorer/ApiDescriptionActionData.cs index bba3427bd7..89b8e1f1f1 100644 --- a/src/Mvc/Mvc.Core/src/ApiExplorer/ApiDescriptionActionData.cs +++ b/src/Mvc/Mvc.Core/src/ApiExplorer/ApiDescriptionActionData.cs @@ -7,7 +7,7 @@ namespace Microsoft.AspNetCore.Mvc /// Represents data used to build an ApiDescription, stored as part of the /// . /// - internal class ApiDescriptionActionData + public class ApiDescriptionActionData { /// /// The ApiDescription.GroupName of ApiDescription objects for the associated