@@ -11,7 +11,7 @@ public struct IngestionSource: Codable, JSONEncodable {
1111 public var sourceID : String
1212 public var type : SourceType
1313 public var name : String
14- public var input : SourceInput
14+ public var input : SourceInput ?
1515 /// Universally unique identifier (UUID) of an authentication resource.
1616 public var authenticationID : String ?
1717 /// Date of creation in RFC 3339 format.
@@ -23,7 +23,7 @@ public struct IngestionSource: Codable, JSONEncodable {
2323 sourceID: String ,
2424 type: SourceType ,
2525 name: String ,
26- input: SourceInput ,
26+ input: SourceInput ? = nil ,
2727 authenticationID: String ? = nil ,
2828 createdAt: String ,
2929 updatedAt: String ? = nil
@@ -54,7 +54,7 @@ public struct IngestionSource: Codable, JSONEncodable {
5454 try container. encode ( self . sourceID, forKey: . sourceID)
5555 try container. encode ( self . type, forKey: . type)
5656 try container. encode ( self . name, forKey: . name)
57- try container. encode ( self . input, forKey: . input)
57+ try container. encodeIfPresent ( self . input, forKey: . input)
5858 try container. encodeIfPresent ( self . authenticationID, forKey: . authenticationID)
5959 try container. encode ( self . createdAt, forKey: . createdAt)
6060 try container. encodeIfPresent ( self . updatedAt, forKey: . updatedAt)
@@ -78,7 +78,7 @@ extension IngestionSource: Hashable {
7878 hasher. combine ( self . sourceID. hashValue)
7979 hasher. combine ( self . type. hashValue)
8080 hasher. combine ( self . name. hashValue)
81- hasher. combine ( self . input. hashValue)
81+ hasher. combine ( self . input? . hashValue)
8282 hasher. combine ( self . authenticationID? . hashValue)
8383 hasher. combine ( self . createdAt. hashValue)
8484 hasher. combine ( self . updatedAt? . hashValue)
0 commit comments