File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,6 @@ public enum SemanticVersionStrategy {
20
20
/// Encode/decode the `SemanticVersion` to/fromfrom a string that conforms to the
21
21
/// semantic version 2.0 specification at https://semver.org.
22
22
case semverString
23
-
24
- internal static let `default` : Self = . semverString
25
23
}
26
24
27
25
extension JSONEncoder {
@@ -33,7 +31,7 @@ extension JSONEncoder {
33
31
}
34
32
35
33
extension JSONDecoder {
36
- /// The strategy to use in decoding semantic versions. Defaults to `.succint `.
34
+ /// The strategy to use in decoding semantic versions. Defaults to `.semverString `.
37
35
public var semanticVersionDecodingStrategy : SemanticVersionStrategy {
38
36
get { userInfo. semanticDecodingStrategy }
39
37
set { userInfo. semanticDecodingStrategy = newValue }
@@ -43,7 +41,7 @@ extension JSONDecoder {
43
41
private extension [ CodingUserInfoKey : Any ] {
44
42
var semanticDecodingStrategy : SemanticVersionStrategy {
45
43
get {
46
- ( self [ . semanticVersionStrategy] as? SemanticVersionStrategy ) ?? . default
44
+ ( self [ . semanticVersionStrategy] as? SemanticVersionStrategy ) ?? . semverString
47
45
}
48
46
set {
49
47
self [ . semanticVersionStrategy] = newValue
You can’t perform that action at this time.
0 commit comments