Skip to content

Commit 268cc7d

Browse files
author
Bart Koelman
authored
Merge pull request #717 from bart-degreed/resource-hooks-disabled
Disabled resource hooks by default, as they are still experimental
2 parents f458c48 + 33e7fb4 commit 268cc7d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Examples/JsonApiDotNetCoreExample/Startups/Startup.cs

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public virtual void ConfigureServices(IServiceCollection services)
4545
options.IncludeTotalRecordCount = true;
4646
options.LoadDatabaseValues = true;
4747
options.ValidateModelState = true;
48+
options.EnableResourceHooks = true;
4849
},
4950
discovery => discovery.AddCurrentAssembly());
5051
// once all tests have been moved to WebApplicationFactory format we can get rid of this line below

src/JsonApiDotNetCore/Configuration/JsonApiOptions.cs

+3-4
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,10 @@ public class JsonApiOptions : IJsonApiOptions
3030
public bool IncludeExceptionStackTraceInErrors { get; set; } = false;
3131

3232
/// <summary>
33-
/// Whether or not ResourceHooks are enabled.
34-
///
35-
/// Default is set to <see langword="true"/>
33+
/// Whether or not resource hooks are enabled.
34+
/// This is currently an experimental feature and defaults to <see langword="false"/>.
3635
/// </summary>
37-
public bool EnableResourceHooks { get; set; } = true;
36+
public bool EnableResourceHooks { get; set; } = false;
3837

3938
/// <summary>
4039
/// Whether or not database values should be included by default

0 commit comments

Comments
 (0)