Skip to content

Commit 846b1c4

Browse files
authored
Merge pull request #11268 from umbraco/v9/bugfix/11188_Missing_JSON_Schema_Property_for_Smidge_Version
Fixes Missing JSON Schema Property for RuntimeMinification:Version
2 parents 53df7c6 + 4d4fa4d commit 846b1c4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Umbraco.Core/Configuration/Models/RuntimeMinificationSettings.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ public class RuntimeMinificationSettings
77
{
88
internal const bool StaticUseInMemoryCache = false;
99
internal const string StaticCacheBuster = "Version";
10+
internal const string StaticVersion = null;
1011

1112
/// <summary>
1213
/// Use in memory cache
@@ -19,5 +20,11 @@ public class RuntimeMinificationSettings
1920
/// </summary>
2021
[DefaultValue(StaticCacheBuster)]
2122
public RuntimeMinificationCacheBuster CacheBuster { get; set; } = Enum<RuntimeMinificationCacheBuster>.Parse(StaticCacheBuster);
23+
24+
/// <summary>
25+
/// The unique version string used if CacheBuster is 'Version'.
26+
/// </summary>
27+
[DefaultValue(StaticVersion)]
28+
public string Version { get; set; } = StaticVersion;
2229
}
2330
}

0 commit comments

Comments
 (0)