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 {
2020 /// Encode/decode the `SemanticVersion` to/fromfrom a string that conforms to the
2121 /// semantic version 2.0 specification at https://semver.org.
2222 case semverString
23-
24- internal static let `default` : Self = . semverString
2523}
2624
2725extension JSONEncoder {
@@ -33,7 +31,7 @@ extension JSONEncoder {
3331}
3432
3533extension 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 `.
3735 public var semanticVersionDecodingStrategy : SemanticVersionStrategy {
3836 get { userInfo. semanticDecodingStrategy }
3937 set { userInfo. semanticDecodingStrategy = newValue }
@@ -43,7 +41,7 @@ extension JSONDecoder {
4341private extension [ CodingUserInfoKey : Any ] {
4442 var semanticDecodingStrategy : SemanticVersionStrategy {
4543 get {
46- ( self [ . semanticVersionStrategy] as? SemanticVersionStrategy ) ?? . default
44+ ( self [ . semanticVersionStrategy] as? SemanticVersionStrategy ) ?? . semverString
4745 }
4846 set {
4947 self [ . semanticVersionStrategy] = newValue
You can’t perform that action at this time.
0 commit comments