DecodableDefault.UUID -> UUIDString
This commit is contained in:
parent
d6096c7ee5
commit
ba8f0b90ca
@ -66,8 +66,8 @@ extension DecodableDefault {
|
|||||||
public static var defaultValue: T { [:] }
|
public static var defaultValue: T { [:] }
|
||||||
}
|
}
|
||||||
|
|
||||||
public struct UUIDSource: DecodableDefaultSource {
|
public struct UUIDStringSource: DecodableDefaultSource {
|
||||||
public static var defaultValue: String { Foundation.UUID().uuidString }
|
public static var defaultValue: String { UUID().uuidString }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -78,7 +78,7 @@ extension DecodableDefault {
|
|||||||
public typealias EmptyString = Wrapper<Sources.EmptyString>
|
public typealias EmptyString = Wrapper<Sources.EmptyString>
|
||||||
public typealias EmptyList<T: List> = Wrapper<Sources.EmptyList<T>>
|
public typealias EmptyList<T: List> = Wrapper<Sources.EmptyList<T>>
|
||||||
public typealias EmptyMap<T: Map> = Wrapper<Sources.EmptyMap<T>>
|
public typealias EmptyMap<T: Map> = Wrapper<Sources.EmptyMap<T>>
|
||||||
public typealias UUID = Wrapper<Sources.UUIDSource>
|
public typealias UUIDString = Wrapper<Sources.UUIDStringSource>
|
||||||
}
|
}
|
||||||
|
|
||||||
extension DecodableDefault.Wrapper: Equatable where Value: Equatable {}
|
extension DecodableDefault.Wrapper: Equatable where Value: Equatable {}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user