File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
JsonApiDotNetCore.Annotations/Configuration
JsonApiDotNetCore/Configuration Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,6 @@ public AttrAttribute GetAttributeByPublicName(string publicName)
173173 public AttrAttribute GetAttributeByPropertyName ( string propertyName )
174174 {
175175 AttrAttribute ? attribute = FindAttributeByPropertyName ( propertyName ) ;
176-
177176 return attribute ?? throw new InvalidOperationException ( $ "Attribute for property '{ propertyName } ' does not exist on resource type '{ ClrType . Name } '.") ;
178177 }
179178
Original file line number Diff line number Diff line change 1+ using JsonApiDotNetCore . Errors ;
12using JsonApiDotNetCore . Middleware ;
23using Microsoft . AspNetCore . Builder ;
34using Microsoft . Extensions . DependencyInjection ;
@@ -60,7 +61,7 @@ private static void AssertAspNetCoreOpenApiIsNotRegistered(IServiceProvider serv
6061
6162 if ( configureInstance != null )
6263 {
63- throw new InvalidOperationException ( "JsonApiDotNetCore is incompatible with ASP.NET OpenAPI. " +
64+ throw new InvalidConfigurationException ( "JsonApiDotNetCore is incompatible with ASP.NET OpenAPI. " +
6465 "Replace 'services.AddOpenApi()' with 'services.AddOpenApiForJsonApi()' from the JsonApiDotNetCore.OpenApi.Swashbuckle NuGet package." ) ;
6566 }
6667 }
Original file line number Diff line number Diff line change @@ -455,7 +455,7 @@ private static void AssertNoInfiniteRecursion(int recursionDepth)
455455 {
456456 if ( recursionDepth >= 500 )
457457 {
458- throw new InvalidOperationException ( "Infinite recursion detected in eager-load chain." ) ;
458+ throw new InvalidConfigurationException ( "Infinite recursion detected in eager-load chain." ) ;
459459 }
460460 }
461461
You can’t perform that action at this time.
0 commit comments