Skip to content

Commit 3afb2d7

Browse files
algolia-botmillotp
andcommitted
fix(specs): event.status can be null (generated)
algolia/api-clients-automation#4727 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent 3c5370c commit 3afb2d7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/Ingestion/Models/Event.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public struct Event: Codable, JSONEncodable {
1212
public var eventID: String
1313
/// Universally unique identifier (UUID) of a task run.
1414
public var runID: String
15-
public var status: EventStatus
15+
public var status: EventStatus?
1616
public var type: IngestionEventType
1717
/// The extracted record batch size.
1818
public var batchSize: Int
@@ -23,7 +23,7 @@ public struct Event: Codable, JSONEncodable {
2323
public init(
2424
eventID: String,
2525
runID: String,
26-
status: EventStatus,
26+
status: EventStatus?,
2727
type: IngestionEventType,
2828
batchSize: Int,
2929
data: [String: AnyCodable]? = nil,

Sources/Ingestion/Models/SourceDocker.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Foundation
77
#endif
88

99
public struct SourceDocker: Codable, JSONEncodable {
10-
/// Shortname of the image, as returned by the referential.
10+
/// Name of the connector.
1111
public var image: String
1212
/// Configuration of the spec.
1313
public var configuration: AnyCodable

0 commit comments

Comments
 (0)