55using JsonApiDotNetCore . Controllers ;
66using JsonApiDotNetCore . Middleware ;
77using JsonApiDotNetCore . OpenApi . Swashbuckle . JsonApiMetadata . ActionMethods ;
8- using JsonApiDotNetCore . Resources ;
98using JsonApiDotNetCore . Resources . Annotations ;
109using Microsoft . AspNetCore . Mvc . ApiExplorer ;
1110using Microsoft . Net . Http . Headers ;
@@ -18,15 +17,15 @@ namespace JsonApiDotNetCore.OpenApi.Swashbuckle.SwaggerComponents;
1817[ UsedImplicitly ( ImplicitUseKindFlags . InstantiatedNoFixedConstructorSignature ) ]
1918internal sealed class DocumentationOpenApiOperationFilter : IOperationFilter
2019{
21- private const string GetPrimaryName = nameof ( BaseJsonApiController < Identifiable < int > , int > . GetAsync ) ;
22- private const string GetSecondaryName = nameof ( BaseJsonApiController < Identifiable < int > , int > . GetSecondaryAsync ) ;
23- private const string GetRelationshipName = nameof ( BaseJsonApiController < Identifiable < int > , int > . GetRelationshipAsync ) ;
24- private const string PostResourceName = nameof ( BaseJsonApiController < Identifiable < int > , int > . PostAsync ) ;
25- private const string PostRelationshipName = nameof ( BaseJsonApiController < Identifiable < int > , int > . PostRelationshipAsync ) ;
26- private const string PatchResourceName = nameof ( BaseJsonApiController < Identifiable < int > , int > . PatchAsync ) ;
27- private const string PatchRelationshipName = nameof ( BaseJsonApiController < Identifiable < int > , int > . PatchRelationshipAsync ) ;
28- private const string DeleteResourceName = nameof ( BaseJsonApiController < Identifiable < int > , int > . DeleteAsync ) ;
29- private const string DeleteRelationshipName = nameof ( BaseJsonApiController < Identifiable < int > , int > . DeleteRelationshipAsync ) ;
20+ private const string GetPrimaryName = nameof ( BaseJsonApiController < , > . GetAsync ) ;
21+ private const string GetSecondaryName = nameof ( BaseJsonApiController < , > . GetSecondaryAsync ) ;
22+ private const string GetRelationshipName = nameof ( BaseJsonApiController < , > . GetRelationshipAsync ) ;
23+ private const string PostResourceName = nameof ( BaseJsonApiController < , > . PostAsync ) ;
24+ private const string PostRelationshipName = nameof ( BaseJsonApiController < , > . PostRelationshipAsync ) ;
25+ private const string PatchResourceName = nameof ( BaseJsonApiController < , > . PatchAsync ) ;
26+ private const string PatchRelationshipName = nameof ( BaseJsonApiController < , > . PatchRelationshipAsync ) ;
27+ private const string DeleteResourceName = nameof ( BaseJsonApiController < , > . DeleteAsync ) ;
28+ private const string DeleteRelationshipName = nameof ( BaseJsonApiController < , > . DeleteRelationshipAsync ) ;
3029 private const string PostOperationsName = nameof ( BaseJsonApiOperationsController . PostOperationsAsync ) ;
3130
3231 private const string TextCompareETag =
0 commit comments