@@ -34,7 +34,7 @@ public protocol PubNubChannelMetadata {
3434 /// The unique identifier of the Channel
3535 var metadataId : String { get }
3636 /// The name of the Channel
37- var name : String { get set }
37+ var name : String ? { get set }
3838 /// Text describing the purpose of the channel
3939 var channelDescription : String ? { get set }
4040 /// The last updated timestamp for the object
@@ -75,7 +75,7 @@ extension PubNubChannelMetadata {
7575/// The default implementation of the `PubNubChannelMetadata` protocol
7676public struct PubNubChannelMetadataBase : PubNubChannelMetadata , Hashable {
7777 public let metadataId : String
78- public var name : String
78+ public var name : String ?
7979 public var channelDescription : String ?
8080
8181 public var updated : Date ?
@@ -89,7 +89,7 @@ public struct PubNubChannelMetadataBase: PubNubChannelMetadata, Hashable {
8989
9090 public init (
9191 metadataId: String = UUID ( ) . uuidString,
92- name: String ,
92+ name: String ? = nil ,
9393 channelDescription: String ? = nil ,
9494 custom concreteCustom: [ String : JSONCodableScalar ] ? = nil ,
9595 updated: Date ? = nil ,
0 commit comments